Skip to content

Commit b2858dc

Browse files
committed
chore: skip linked-issue check for org members
Use github.event.pull_request.author_association to bypass the linked-issue requirement for MEMBER and COLLABORATOR authors. External contributors still must reference an issue or discussion.
1 parent dc5090e commit b2858dc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,20 @@ jobs:
3636
env:
3737
PR_BODY: ${{ github.event.pull_request.body }}
3838
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
39+
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
3940
run: |
4041
# Skip for bots (dependabot, renovate, github-actions)
4142
if [[ "$PR_AUTHOR" == *"[bot]"* || "$PR_AUTHOR" == "dependabot" ]]; then
4243
echo "Bot PR — skipping linked issue check."
4344
exit 0
4445
fi
4546
47+
# Skip for org members and collaborators
48+
if [[ "$AUTHOR_ASSOCIATION" == "MEMBER" || "$AUTHOR_ASSOCIATION" == "COLLABORATOR" ]]; then
49+
echo "Org member/collaborator ($PR_AUTHOR) — skipping linked issue check."
50+
exit 0
51+
fi
52+
4653
if [ -z "$PR_BODY" ]; then
4754
echo "::error::PR body is empty. Every PR must link an issue or discussion."
4855
echo "Use 'Closes #<number>', 'Fixes #<number>', 'Relates to #<number>', or include a discussion URL."

0 commit comments

Comments
 (0)