-
-
Notifications
You must be signed in to change notification settings - Fork 617
30 lines (25 loc) · 1.03 KB
/
discord_issues.yml
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
29
30
name: Discuss "help-wanted" issue on Discord
on:
issues:
types:
- labeled
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number'
required: true
permissions:
issues: write
jobs:
discord:
runs-on: ubuntu-latest
steps:
- name: "Discuss on Discord-Issues"
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.issue_number || github.event.issue.number }}
issue_comment: Hey 👋, I've just created a [thread]($THREAD_LINK$) for this issue on [PyTorch-Ignite Discord](https://pytorch-ignite.ai/chat) where you can quickly talk to the community on the topic.
discord_message: New issue created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}>