]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: remove `if: github.event.issue.pull_request` from `labeler.yml` 26338/head
authorJan Macku <jamacku@redhat.com>
Tue, 7 Feb 2023 14:40:47 +0000 (15:40 +0100)
committerJan Macku <jamacku@redhat.com>
Tue, 7 Feb 2023 15:00:49 +0000 (16:00 +0100)
`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.

.github/workflows/labeler.yml

index bab6da7edde974de6697090e6db3f0fa0476fb12..c282df8d73e53462d6020d5216a1f0cc33422469 100644 (file)
@@ -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",