Skip to content

Commit 09258ac

Browse files
authored
Fixed CodeRabbit Check. Added No Issue PR Check (#385)
* Fixed CodeRabbit Check. Added No Issue PR Check * Fixed CodeRabbit Check. Added No Issue PR Check 1764267510 * Fixed CodeRabbit Check. Added No Issue PR Check 1764271314 * Fixed CodeRabbit Check. Added No Issue PR Check 1764271818
1 parent c26cecb commit 09258ac

3 files changed

Lines changed: 63 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
palisadoes
2+
noman2002

.github/workflows/pull-request-review.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
});
2525
2626
// Filter reviews that have a user login containing "coderabbit" (case-insensitive)
27+
// and exclude COMMENTED states.
2728
const codeRabbitReviews = reviews.filter(review =>
28-
review.user.login.toLowerCase().includes('coderabbit') || review.user.login.toLowerCase().includes('coderabbitai')
29+
(review.user.login.toLowerCase().includes('coderabbit') ||
30+
review.user.login.toLowerCase().includes('coderabbitai')) &&
31+
review.state !== 'COMMENTED'
2932
);
3033
3134
// Fail if no CodeRabbit reviews are found
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
##############################################################################
2+
##############################################################################
3+
#
4+
# NOTE!
5+
#
6+
# Please read the README.md file in this directory that defines what should
7+
# be placed in this file
8+
#
9+
##############################################################################
10+
##############################################################################
11+
12+
name: PR Target Workflow
13+
on:
14+
pull_request_target:
15+
16+
# Required for arkid15r/check-pr-issue-action
17+
permissions:
18+
contents: read
19+
issues: read
20+
pull-requests: write
21+
22+
jobs:
23+
PR-Greeting:
24+
name: Pull Request Target
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Add the PR Review Policy
28+
uses: thollander/actions-comment-pull-request@v3
29+
with:
30+
comment-tag: pr_review_policy
31+
message: |
32+
## Our Pull Request Approval Process
33+
34+
This PR will be reviewed according to the [Palisadoes Contributing Guidelines](https://developer.palisadoes.org/docs/contributor-guide/contributing)
35+
36+
Thanks for contributing!
37+
38+
- name: Greeting Message to User
39+
uses: actions/first-interaction@v3
40+
with:
41+
pr_message: 'Congratulations on making your first PR!'
42+
43+
# Check-PR-Issue:
44+
# name: Check PR Issue Assignment
45+
# runs-on: ubuntu-latest
46+
# needs: [PR-Greeting]
47+
# steps:
48+
# - uses: actions/checkout@v4
49+
# - name: Check PR linked issue and assignee
50+
# uses: arkid15r/check-pr-issue-action@f2c2ac3b8c73b5da96294af9ac3ec174098cf513
51+
# with:
52+
# close_pr_on_failure: 'true'
53+
# github_token: ${{ secrets.GITHUB_TOKEN }}
54+
# no_assignee_message: 'The linked issue must be assigned to the PR author.'
55+
# no_issue_message: 'The PR must be linked to an issue assigned to the PR author.'
56+
# require_assignee: 'true'
57+
# skip_users_file_path: '.github/workflows/config/check-pr-issue-skip-usernames.txt'

0 commit comments

Comments
 (0)