From e37692c2418e0352217fa2639d01dde754a866bc Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 2 Feb 2025 00:33:26 -0500 Subject: [PATCH 1/2] Run discord GHA against pull_request_target --- .github/workflows/discord-pr-notify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/discord-pr-notify.yml b/.github/workflows/discord-pr-notify.yml index 9546445..fe55a06 100644 --- a/.github/workflows/discord-pr-notify.yml +++ b/.github/workflows/discord-pr-notify.yml @@ -2,7 +2,7 @@ name: Discord PR Notifier on: workflow_dispatch: - pull_request: + pull_request_target: types: [opened] jobs: From e036c1e33b02d824f946833488a7f76006e114c2 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 2 Feb 2025 00:38:28 -0500 Subject: [PATCH 2/2] Exclude changeset PRs --- .github/workflows/discord-pr-notify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/discord-pr-notify.yml b/.github/workflows/discord-pr-notify.yml index fe55a06..a58360a 100644 --- a/.github/workflows/discord-pr-notify.yml +++ b/.github/workflows/discord-pr-notify.yml @@ -8,6 +8,7 @@ on: jobs: notify: runs-on: ubuntu-latest + if: github.head_ref != 'changeset-release/main' steps: - name: Send Discord Notification uses: Ilshidur/action-discord@master