From ba991cbb8549f89121a2de615aa81109d8e2cd5a Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 1 Jun 2023 11:06:20 +0200 Subject: [PATCH] ci: use `github.event.label.name` for check in pull-request-commenter The `github.event.label.name` was replaced by `github.event.pull_request.label` in PR #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 --- .github/workflows/pull-request-commentor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-commentor.yaml b/.github/workflows/pull-request-commentor.yaml index 2eefd445d..2b455b038 100644 --- a/.github/workflows/pull-request-commentor.yaml +++ b/.github/workflows/pull-request-commentor.yaml @@ -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'))