5 types: [ opened, synchronize, reopened, converted_to_draft, ready_for_review ]
12 runs-on: ubuntu-latest
13 if: ${{ github.event.action == 'opened' && github.event.pull_request.draft }}
16 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 ISSUE: ${{ github.event.pull_request.html_url }}
19 gh pr edit $ISSUE --add-label "Status: Work in Progress"
22 runs-on: ubuntu-latest
23 if: ${{ github.event.action == 'synchronize' || github.event.action == 'reopened' }}
26 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 ISSUE: ${{ github.event.pull_request.html_url }}
29 gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Inactive,Status: Revision Needed,Status: Stale"
32 runs-on: ubuntu-latest
33 if: ${{ github.event.action == 'converted_to_draft' }}
36 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 ISSUE: ${{ github.event.pull_request.html_url }}
39 gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Code Review Needed,Status: Inactive,Status: Revision Needed,Status: Stale" --add-label "Status: Work in Progress"
42 runs-on: ubuntu-latest
43 if: ${{ github.event.action == 'ready_for_review' }}
46 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47 ISSUE: ${{ github.event.pull_request.html_url }}
49 gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Inactive,Status: Revision Needed,Status: Stale,Status: Work in Progress" --add-label "Status: Code Review Needed"