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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user