From 6f8634844c88e523ee4ba5433881f58ff6fe64d3 Mon Sep 17 00:00:00 2001 From: Aryan Gupta Date: Mon, 22 May 2023 20:54:09 +0530 Subject: [PATCH 1/3] Added discuss_on_discord extension --- .github/workflows/discord.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/discord.yml diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 00000000000..c4a24a71dcc --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,21 @@ +on: + issues: + types: [opened] + workflow_dispatch: + inputs: + issue_number: + description: 'Issue number' + required: true + +permissions: + issues: write + +jobs: + discord: + runs-on: ubuntu-latest + steps: + - uses: EndBug/discuss-on-discord@v1 + with: + discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }} + destination: https://discord.com/channels/123456789012345678/123456789012345678 + issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }} \ No newline at end of file From 6b996f517d2ca5a401f7d31672182eba309cde94 Mon Sep 17 00:00:00 2001 From: Aryan Gupta Date: Tue, 30 May 2023 15:22:58 +0530 Subject: [PATCH 2/3] Added workflow to create threads for help wanted issues on discord --- .github/workflows/discord.yml | 21 --------------------- .github/workflows/discord_issues.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/discord.yml create mode 100644 .github/workflows/discord_issues.yml diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml deleted file mode 100644 index c4a24a71dcc..00000000000 --- a/.github/workflows/discord.yml +++ /dev/null @@ -1,21 +0,0 @@ -on: - issues: - types: [opened] - workflow_dispatch: - inputs: - issue_number: - description: 'Issue number' - required: true - -permissions: - issues: write - -jobs: - discord: - runs-on: ubuntu-latest - steps: - - uses: EndBug/discuss-on-discord@v1 - with: - discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }} - destination: https://discord.com/channels/123456789012345678/123456789012345678 - issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }} \ No newline at end of file diff --git a/.github/workflows/discord_issues.yml b/.github/workflows/discord_issues.yml new file mode 100644 index 00000000000..e647b8c4d44 --- /dev/null +++ b/.github/workflows/discord_issues.yml @@ -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 for this issue on PyTorch-Ignite Discord where you can quickly talk to the community on the topic. You can find it [here]($THREAD_LINK$) From 07674d4c2ef26227984c8c6b6f3473a1170b518a Mon Sep 17 00:00:00 2001 From: Aryan Gupta <97878444+guptaaryan16@users.noreply.github.com> Date: Tue, 30 May 2023 18:33:01 +0530 Subject: [PATCH 3/3] Update .github/workflows/discord_issues.yml Co-authored-by: vfdev --- .github/workflows/discord_issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/discord_issues.yml b/.github/workflows/discord_issues.yml index e647b8c4d44..77f8d723820 100644 --- a/.github/workflows/discord_issues.yml +++ b/.github/workflows/discord_issues.yml @@ -22,4 +22,4 @@ jobs: 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 for this issue on PyTorch-Ignite Discord where you can quickly talk to the community on the topic. You can find it [here]($THREAD_LINK$) + 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.