Skip to content

Commit da78f12

Browse files
authored
ci: make issues discord ping only on issue close, disable pr action (#1158)
1 parent b2b9e2f commit da78f12

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/issue.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: "Issues"
2-
on: [issues]
2+
on:
3+
issues:
4+
types: [closed]
35
jobs:
46
build:
57
runs-on: ubuntu-latest
@@ -9,6 +11,6 @@ jobs:
911
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }}
1012
uses: Ilshidur/action-discord@master
1113
with:
12-
args: 'Issue [{{ EVENT_PAYLOAD.issue.title }}]({{ EVENT_PAYLOAD.issue.html_url }}) [{{ EVENT_PAYLOAD.action }}] by [@{{ EVENT_PAYLOAD.issue.user.login }}]({{ EVENT_PAYLOAD.issue.user.html_url }})'
14+
args: 'Issue [{{ EVENT_PAYLOAD.issue.title }}]({{ EVENT_PAYLOAD.issue.html_url }}) {{ EVENT_PAYLOAD.action }} by [@{{ EVENT_PAYLOAD.issue.user.login }}]({{ EVENT_PAYLOAD.issue.user.html_url }})'
1315

1416

.github/workflows/review-submitted.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
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)