Skip to content

Commit

Permalink
Discord Threads for 'help wanted' issues (#2960)
Browse files Browse the repository at this point in the history
* Added discuss_on_discord extension

* Added workflow to create threads for help wanted issues on discord

* Update .github/workflows/discord_issues.yml

Co-authored-by: vfdev <vfdev.5@gmail.com>

---------

Co-authored-by: vfdev <vfdev.5@gmail.com>
  • Loading branch information
guptaaryan16 and vfdev-5 committed May 30, 2023
1 parent 9b4bef8 commit fd4b5aa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/discord_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
uses: EndBug/discuss-on-discord@v1.1.0
if: ${{ github.event.label.name == 'help wanted' }}
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.

0 comments on commit fd4b5aa

Please sign in to comment.