Skip to content

Commit 379f632

Browse files
committed
feat: [ENG-1933] add CONTRIBUTOR to author_association check to support org members without team assignment.
1 parent 592fe70 commit 379f632

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ jobs:
2424
echo "author_association: ${{ github.event.pull_request.author_association }}"
2525
2626
auto-review:
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.
2730
if: >-
2831
${{
2932
!github.event.pull_request.draft &&
30-
contains(fromJSON('["MEMBER", "OWNER"]'), github.event.pull_request.author_association)
33+
contains(fromJSON('["MEMBER", "OWNER", "CONTRIBUTOR"]'), github.event.pull_request.author_association)
3134
}}
3235
runs-on: ubuntu-latest
3336
timeout-minutes: 10

0 commit comments

Comments
 (0)