Skip to content

Commit

Permalink
Add labels automatically on approve
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 16, 2024
1 parent 94c44f4 commit 7f0a0ff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/add-label-on-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add Label to run extended tests on approve

on:
pull_request_review:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
label_issues:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: extended-tests

0 comments on commit 7f0a0ff

Please sign in to comment.