From 5bda6eac13835b033ea4cda27475ac0de3676e26 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Tue, 18 Mar 2025 19:49:30 +0100 Subject: [PATCH] Switch pr workflow back to pull_request_target --- .github/workflows/pr-auto-manager.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-auto-manager.yml b/.github/workflows/pr-auto-manager.yml index 68078e732..65314f94b 100644 --- a/.github/workflows/pr-auto-manager.yml +++ b/.github/workflows/pr-auto-manager.yml @@ -1,8 +1,7 @@ name: 🔀 Pull Request Manager on: - workflow_dispatch: - pull_request: # TODO: This is for texting, and should not be merged into staging. Staging should use 'pull_request_target' + pull_request_target: types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed] pull_request_review_comment: types: [created] @@ -91,6 +90,12 @@ jobs: # Only runs on comments not done by the github actions bot if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]' + # Override permissions, issue labeler needs issues write access + permissions: + contents: read + issues: write + pull-requests: write + steps: - name: Remove Stale Label # 🤖 Issues Helper