mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -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 }}"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user