From 2f2d48d84f6d0924605a6168dd3dff675ded2799 Mon Sep 17 00:00:00 2001 From: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:53:31 +0530 Subject: [PATCH] Adds Discord notify for reopened PR's and removes default parameters (#96319) ## About The Pull Request - Discord message is now sent when the PR is reopened - Removes `username`, `title_url`, `title`, & `message` from discord notify action as their default values work fine ## Changelog N/A --- .github/workflows/discord_pr_announce.yml | 8 ++------ .github/workflows/stale.yml | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/discord_pr_announce.yml b/.github/workflows/discord_pr_announce.yml index a24f8bb2b77..092e7d69a9d 100644 --- a/.github/workflows/discord_pr_announce.yml +++ b/.github/workflows/discord_pr_announce.yml @@ -1,7 +1,7 @@ name: "Discord PR Notification" on: pull_request_target: - types: [opened, closed] + types: [opened, closed, reopened] jobs: notify: @@ -19,15 +19,11 @@ jobs: uses: tgstation/discord-notify@main if: > steps.secrets_set.outputs.SECRETS_ENABLED && - (github.event.pull_request.merged == true || github.event.action == 'opened') && + (github.event.pull_request.merged == true || github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request.author_association != 'FIRST_TIMER' && github.event.pull_request.author_association != 'FIRST_TIME_CONTRIBUTOR' with: webhook_url: ${{ secrets.DISCORD_WEBHOOK }} - title: ${{ github.event.pull_request.user.login }} - ${{ github.event.pull_request.title }} - message: GET_ACTION include_image: false show_author: false avatar_url: https://avatars.githubusercontent.com/u/1363778?s=200&v=4 - username: GitHub - title_url: "${{ github.event.pull_request.html_url }}" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9d9fc69f471..36b672d61cf 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -77,5 +77,3 @@ jobs: include_image: false show_author: false avatar_url: https://avatars.githubusercontent.com/u/1363778?s=200&v=4 - username: GitHub - title_url: "${{ matrix.pull_request.html_url }}"