From c7b49a3d069b3d7730b5b0cfcfd6aa9665e18cb7 Mon Sep 17 00:00:00 2001 From: Cyril Gaudin Date: Sun, 25 Feb 2024 20:04:38 +0100 Subject: [PATCH] feat(github): Remove waiting-response label automatically (#413) --- .github/workflows/remove-waiting-response.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/remove-waiting-response.yml diff --git a/.github/workflows/remove-waiting-response.yml b/.github/workflows/remove-waiting-response.yml new file mode 100644 index 00000000..9c7a0393 --- /dev/null +++ b/.github/workflows/remove-waiting-response.yml @@ -0,0 +1,21 @@ +name: Remove waiting-response label + +on: [issue_comment] + +jobs: + remove_label: + if: github.actor != 'cyrilgdn' + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.removeLabel({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + name: ["waiting-response"] + })