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 <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2023-02-20 09:57:56 +01:00
parent d9a70d696e
commit 3252c1e782

View File

@ -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"]
})