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
This commit is contained in:
SyncIt21
2026-06-16 21:23:31 -07:00
committed by GitHub
parent 37af9d4dd0
commit 2f2d48d84f
2 changed files with 2 additions and 8 deletions
+2 -6
View File
@@ -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 }}"
-2
View File
@@ -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 }}"