We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a7adc commit 919c56dCopy full SHA for 919c56d
1 file changed
.github/workflows/pr-approval-label.yml
@@ -0,0 +1,27 @@
1
+name: "PR Approval Label"
2
+
3
+on:
4
+ pull_request_review:
5
+ types: [submitted]
6
7
+permissions:
8
+ contents: read
9
+ pull-requests: write
10
11
+jobs:
12
+ add-ready-label:
13
+ runs-on: ubuntu-latest
14
+ # Only run when an org member approves
15
+ if: github.event.review.state == 'approved' && github.event.review.author_association == 'MEMBER'
16
+ steps:
17
+ - name: Add ready label
18
+ uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
19
+ with:
20
+ github-token: ${{ secrets.GITHUB_TOKEN }}
21
+ script: |
22
+ await github.rest.issues.addLabels({
23
+ owner: context.repo.owner,
24
+ repo: context.repo.repo,
25
+ issue_number: context.payload.pull_request.number,
26
+ labels: ['ready']
27
+ });
0 commit comments