Switch pr workflow back to pull_request_target
| @@ -1,8 +1,7 @@ | |||
| 1 | name: 🔀 Pull Request Manager | 1 | name: 🔀 Pull Request Manager |
| 2 | 2 | ||
| 3 | on: | 3 | on: |
| 4 | workflow_dispatch: | 4 | pull_request_target: |
| 5 | pull_request: # TODO: This is for texting, and should not be merged into staging. Staging should use 'pull_request_target' | ||
| 6 | types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed] | 5 | types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed] |
| 7 | pull_request_review_comment: | 6 | pull_request_review_comment: |
| 8 | types: [created] | 7 | types: [created] |
| @@ -91,6 +90,12 @@ jobs: | |||
| 91 | # Only runs on comments not done by the github actions bot | 90 | # Only runs on comments not done by the github actions bot |
| 92 | if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]' | 91 | if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]' |
| 93 | 92 | ||
| 93 | # Override permissions, issue labeler needs issues write access | ||
| 94 | permissions: | ||
| 95 | contents: read | ||
| 96 | issues: write | ||
| 97 | pull-requests: write | ||
| 98 | |||
| 94 | steps: | 99 | steps: |
| 95 | - name: Remove Stale Label | 100 | - name: Remove Stale Label |
| 96 | # 🤖 Issues Helper | 101 | # 🤖 Issues Helper |