From 3252c1e782b7cc80ded2c120593378fc113b790e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 20 Feb 2023 09:57:56 +0100 Subject: [PATCH] ci: remove `ok-to-test` label after commenting Once the comments have been added, the `ok-to-test` label can be removed. This makes it possible to simplify the Mergify configuration. Signed-off-by: Niels de Vos --- .github/workflows/pull-request-commentor.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pull-request-commentor.yaml b/.github/workflows/pull-request-commentor.yaml index f9084fa25..3176288e7 100644 --- a/.github/workflows/pull-request-commentor.yaml +++ b/.github/workflows/pull-request-commentor.yaml @@ -113,3 +113,14 @@ jobs: issue-number: ${{ github.event.pull_request.number }} body: | /test ci/centos/upgrade-tests-rbd + + - name: remove ok-to-test-label after commenting + uses: actions/github-script@v6 + with: + script: | + github.rest.issues.removeLabel({ + issue_number: github.event.pull_request.number, + owner: context.repo.owner, + repo: context.repo.repo, + name: ["ok-to-test"] + })