Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Discord PR extension workflow output (#3046) #3051

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/discord_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
issues:
types:
- labeled
pull_request:
types:
- labeled
workflow_dispatch:
inputs:
issue_number:
Expand All @@ -15,7 +12,6 @@ on:

permissions:
issues: write
pull-requests: write

jobs:
discord:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/discord_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
inputs:
pull_request_number:
description: 'Pull request number'
required: true

permissions:
pull-requests: write
Expand All @@ -24,5 +25,5 @@ jobs:
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 }}>
discord_message: New PR created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request_number || github.event.pull_request.number }}>

Loading