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.
This commit is contained in:
Jan Macku 2023-02-07 15:40:47 +01:00
parent d709b92ef1
commit de95bb2a98

View 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",