-
-
Notifications
You must be signed in to change notification settings - Fork 619
29 lines (25 loc) · 1.11 KB
/
discord_pull_requests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Discuss "help-wanted" PR on Discord
on:
pull_request:
types:
- labeled
workflow_dispatch:
inputs:
pull_request_number:
description: 'Pull request number'
required: true
permissions:
pull-requests: write
jobs:
discord:
runs-on: ubuntu-latest
steps:
- name: "Discuss on Discord-PR (Non-maintainer only)"
if: ${{ github.event.label.name == 'help wanted' }}
uses: EndBug/[email protected]
with:
discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }}
destination: ${{ secrets.DISCORD_BOT_DESTINATION }}
issue_number: ${{ github.event.inputs.pull_request_number || github.event.pull_request.number }}
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.
discord_message: New PR created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request_number || github.event.pull_request.number }}>