From: Jan Macku Date: Tue, 7 Feb 2023 14:40:47 +0000 (+0100) Subject: ci: remove `if: github.event.issue.pull_request` from `labeler.yml` X-Git-Tag: v253-rc3~35^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26338%2Fhead;p=thirdparty%2Fsystemd.git ci: remove `if: github.event.issue.pull_request` from `labeler.yml` `github.event.issue.pull_request` is an object, not a boolean. This is the root cause of why the step that is supposed to remove labels is always skipped. Having this condition in place is not necessary since the workflow is run on the `pull_request_target` event. --- diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index bab6da7edde..c282df8d73e 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -83,7 +83,7 @@ jobs: }) - uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.issue.pull_request + if: github.event_name == 'pull_request_target' && github.event.action == 'closed' with: script: | for (const label of ["please-review",