Skip to content

Commit 22cb828

Browse files
authored
Merge pull request #332 from campfirein/feat/ENG-1933
feat: [ENG-1933] include OWNER in author_association check and enhanc…
2 parents d2f361e + 379f632 commit 22cb828

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/claude-code-pr-review.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ permissions:
1616
pull-requests: write
1717

1818
jobs:
19+
debug:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- run: |
23+
echo "draft: ${{ github.event.pull_request.draft }}"
24+
echo "author_association: ${{ github.event.pull_request.author_association }}"
25+
1926
auto-review:
20-
if: ${{ !github.event.pull_request.draft && github.event.pull_request.author_association == 'MEMBER' }}
27+
# CONTRIBUTOR: GitHub reports CONTRIBUTOR instead of MEMBER for org members
28+
# whose repo access comes from org base permissions rather than team assignment.
29+
# TODO: Remove CONTRIBUTOR once all org members are assigned to repo teams.
30+
if: >-
31+
${{
32+
!github.event.pull_request.draft &&
33+
contains(fromJSON('["MEMBER", "OWNER", "CONTRIBUTOR"]'), github.event.pull_request.author_association)
34+
}}
2135
runs-on: ubuntu-latest
2236
timeout-minutes: 10
2337
steps:
@@ -35,5 +49,8 @@ jobs:
3549
prompt: |
3650
REPO: ${{ github.repository }}
3751
PR NUMBER: ${{ github.event.pull_request.number }}
38-
39-
Perform code review. Provide detailed feedback using inline comments for specific issues. Apply Conventional Comments.
52+
53+
Review this PR for correctness, security, and code quality. Use Conventional Comments.
54+
55+
Always provide inline comments for specific issues.
56+
Post a general summary comment with an overall score (0-5, where 0 is poor and 5 is excellent).

0 commit comments

Comments
 (0)