labe-assign revert pull_request_review change
comment out pull_request_review, only run the step
on pull requests
@@ -3,14 +3,17 @@ name: Label & Assign
on:
issue_comment:
types: [created, edited]
- pull_request_review:
- types: [submitted, edited]
+# https://github.com/orgs/community/discussions/26651 pull_request_review runs in the context of the PR,
+# so doesn't have permission to add labels or reassign
+# pull_request_review:
+# types: [submitted, edited]
permissions:
pull-requests: write
jobs:
label-and-assign:
+ if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- uses: docker://samuelcolvin/label-and-assign:latest
