Skip to content

Commit

Permalink
ci: remove ok-to-test label after commenting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nixpanic committed Feb 20, 2023
1 parent f654066 commit 000f4e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pull-request-commentor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,13 @@ jobs:
issue-number: ${{ github.event.pull_request.number }}
body: |
/test ci/centos/upgrade-tests-rbd
- name: remove ok-to-test-label after commenting
# yamllint disable rule:line-length
run: |
curl --silent --fail-with-body \
-X DELETE \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Authorization: token ${{ github.token }}' \
'https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/labels/ok-to-test'
# yamllint enable rule:line-length

0 comments on commit 000f4e8

Please sign in to comment.