Skip to content

Commit b7916b4

Browse files
authored
chore: discord notifications action (#1108)
try to manage a few events with discord and see what happens
1 parent 0838a48 commit b7916b4

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/fork.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Fork"
2+
on: [fork]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Discord Notification - Fork
8+
env:
9+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }}
10+
uses: Ilshidur/action-discord@master
11+
with:
12+
args: 'GraphiQL forked by [@{{ EVENT_PAYLOAD.owner.login }}](EVENT_PAYLOAD.owner.html_url) as [EVENT_PAYLOAD.full_name](EVENT_PAYLOAD.html_url)'
13+

.github/workflows/issue.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Issues"
2+
on: [issues]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Discord Notification - Issues
8+
env:
9+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }}
10+
uses: Ilshidur/action-discord@master
11+
with:
12+
args: 'Issue [@{{ EVENT_PAYLOAD.owner.login }}](EVENT_PAYLOAD.issue.html_url) as [EVENT_PAYLOAD.full_name](EVENT_PAYLOAD.html_url)'
13+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "PR Review Submitted"
2+
on:
3+
pull_request_review:
4+
types: [submitted]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Discord Notification - PR Review Submitted
10+
env:
11+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }}
12+
uses: Ilshidur/action-discord@master
13+
with:
14+
args: 'Review submitted by [@{{ EVENT_PAYLOAD.owner.login }}](EVENT_PAYLOAD.owner.html_url) for [EVENT_PAYLOAD.pull_request.name](EVENT_PAYLOAD.pull_request.html_url)'
15+

0 commit comments

Comments
 (0)