Skip to content

Commit e3c625a

Browse files
Fix Discord PR extension workflow output (#3046) (#3051)
* Fix Discord PR extension workflow output * Update variable in discord_pull_requests.yaml Co-authored-by: Aryan Gupta <[email protected]>
1 parent f2b1183 commit e3c625a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/discord_issues.yml

-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
issues:
55
types:
66
- labeled
7-
pull_request:
8-
types:
9-
- labeled
107
workflow_dispatch:
118
inputs:
129
issue_number:
@@ -15,7 +12,6 @@ on:
1512

1613
permissions:
1714
issues: write
18-
pull-requests: write
1915

2016
jobs:
2117
discord:

.github/workflows/discord_pull_requests.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
inputs:
99
pull_request_number:
1010
description: 'Pull request number'
11+
required: true
1112

1213
permissions:
1314
pull-requests: write
@@ -24,5 +25,5 @@ jobs:
2425
destination: ${{ secrets.DISCORD_BOT_DESTINATION }}
2526
issue_number: ${{ github.event.inputs.pull_request_number || github.event.pull_request.number }}
2627
issue_comment: Hey 👋, I've just created a [thread]($THREAD_LINK$) for this pull request on [PyTorch-Ignite Discord](https://pytorch-ignite.ai/chat) where you can quickly talk to the community on the topic.
27-
discord_message: New PR created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}>
28+
discord_message: New PR created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request_number || github.event.pull_request.number }}>
2829

0 commit comments

Comments
 (0)