Skip to content

Commit

Permalink
ci: use github.event.label.name for check in pull-request-commenter
Browse files Browse the repository at this point in the history
The `github.event.label.name` was replaced by
`github.event.pull_request.label` in PR ceph#3862. It seems that the value
always is `null`, which causes the pull-request-commenter to skip the
events for `ok-to-test` label additions. By using the original
`github.event.label.name`, things work again as expected.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
  • Loading branch information
nixpanic authored and mergify[bot] committed Jun 1, 2023
1 parent 1ab9244 commit ba991cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-commentor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
add-comment:
if: >
(github.event.pull_request.label == 'ok-to-test' &&
(github.event.label.name == 'ok-to-test' &&
github.event.pull_request.merged != true) ||
(github.event.pull_request.action == 'opened' &&
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
Expand Down

0 comments on commit ba991cb

Please sign in to comment.