Skip to content

Commit

Permalink
Add label addition and removal of status: *
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 19, 2024
1 parent 4351a39 commit 6d1681b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/on-ready-for-review-or-review-requested.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: On ready-for-review PR

on:
pull_request:
types:
- ready_for_review
- review_requested

jobs:
add-label-changes-required:
runs-on: ubuntu-latest
steps:
- run: gh pr edit "$PR_URL" --remove-label "status: changes required"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}}
- run: gh pr edit "$PR_URL" --add-label "status: ready-for-review"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}}
15 changes: 15 additions & 0 deletions .github/workflows/on-review-submitted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: On reviewed PR

on:
pull_request_review:
types:
- submitted

jobs:
add-label-changes-required:
runs-on: ubuntu-latest
steps:
- run: gh pr edit "$PR_URL" --add-label "status: changes required"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}}

0 comments on commit 6d1681b

Please sign in to comment.