Skip to content
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/pr-approval-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ permissions:
jobs:
add-ready-label:
runs-on: ubuntu-latest
# Only run when an org member approves
if: github.event.review.state == 'approved' && github.event.review.author_association == 'MEMBER'
# Only run when an org member approves and PR is not from a fork
# (fork PRs don't have write permissions to add labels)
if: |
github.event.review.state == 'approved' &&
github.event.review.author_association == 'MEMBER' &&
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Add ready label
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down