From 6d1681b871363117859b7d82fc242b2301557843 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sat, 19 Oct 2024 11:35:51 +0200 Subject: [PATCH] Add label addition and removal of status: * --- ...n-ready-for-review-or-review-requested.yml | 20 +++++++++++++++++++ .github/workflows/on-review-submitted.yml | 15 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/on-ready-for-review-or-review-requested.yml create mode 100644 .github/workflows/on-review-submitted.yml diff --git a/.github/workflows/on-ready-for-review-or-review-requested.yml b/.github/workflows/on-ready-for-review-or-review-requested.yml new file mode 100644 index 000000000000..ac8f0d80d54a --- /dev/null +++ b/.github/workflows/on-ready-for-review-or-review-requested.yml @@ -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}} diff --git a/.github/workflows/on-review-submitted.yml b/.github/workflows/on-review-submitted.yml new file mode 100644 index 000000000000..55722c6a779f --- /dev/null +++ b/.github/workflows/on-review-submitted.yml @@ -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}}