Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/config/check-pr-issue-skip-usernames.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
palisadoes
noman2002
5 changes: 4 additions & 1 deletion .github/workflows/pull-request-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
});

// Filter reviews that have a user login containing "coderabbit" (case-insensitive)
// and exclude COMMENTED states.
const codeRabbitReviews = reviews.filter(review =>
review.user.login.toLowerCase().includes('coderabbit') || review.user.login.toLowerCase().includes('coderabbitai')
(review.user.login.toLowerCase().includes('coderabbit') ||
review.user.login.toLowerCase().includes('coderabbitai')) &&
review.state !== 'COMMENTED'
);

// Fail if no CodeRabbit reviews are found
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/pull-request-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
##############################################################################
##############################################################################
#
# NOTE!
#
# Please read the README.md file in this directory that defines what should
# be placed in this file
#
##############################################################################
##############################################################################

name: PR Target Workflow
on:
pull_request_target:

# Required for arkid15r/check-pr-issue-action
permissions:
contents: read
issues: read
pull-requests: write

jobs:
PR-Greeting:
name: Pull Request Target
runs-on: ubuntu-latest
steps:
- name: Add the PR Review Policy
uses: thollander/actions-comment-pull-request@v3
with:
comment-tag: pr_review_policy
message: |
## Our Pull Request Approval Process

This PR will be reviewed according to the [Palisadoes Contributing Guidelines](https://developer.palisadoes.org/docs/contributor-guide/contributing)

Thanks for contributing!

- name: Greeting Message to User
uses: actions/first-interaction@v3
with:
pr_message: 'Congratulations on making your first PR!'

# Check-PR-Issue:
# name: Check PR Issue Assignment
# runs-on: ubuntu-latest
# needs: [PR-Greeting]
# steps:
# - uses: actions/checkout@v4
# - name: Check PR linked issue and assignee
# uses: arkid15r/check-pr-issue-action@f2c2ac3b8c73b5da96294af9ac3ec174098cf513
# with:
# close_pr_on_failure: 'true'
# github_token: ${{ secrets.GITHUB_TOKEN }}
# no_assignee_message: 'The linked issue must be assigned to the PR author.'
# no_issue_message: 'The PR must be linked to an issue assigned to the PR author.'
# require_assignee: 'true'
# skip_users_file_path: '.github/workflows/config/check-pr-issue-skip-usernames.txt'
Loading