Skip to content

Commit

Permalink
chore: added workflow for notification on discord forum (#3300)
Browse files Browse the repository at this point in the history
* added workflow for forum

* Update azure-devops-issue-sync.yml
  • Loading branch information
jatin-jangir authored Apr 19, 2023
1 parent 758970c commit 5463277
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/azure-devops-issue-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Sync issue to Azure DevOps work item (testing)
on:
issues:
types:
[opened, edited, deleted, closed, reopened]
[opened, edited, deleted, closed, reopened, labeled]

jobs:
create_issues:
Expand Down Expand Up @@ -35,11 +35,13 @@ jobs:
ado_close_state: "Done"
ado_bypassrules: true
log_level: 100
- if: contains(github.event.issue.labels.*.name, 'pager-duty')
- if: github.event.label.name == 'pager-duty'
name: custom issues
env:
DISCORD_WEBHOOK: ${{ secrets.PAGERDUTY_DISCORD_WEBHOOK}}

DISCORD_WEBHOOK: ${{ secrets.GITHUB_ISSUES_DISCORD_WEBHOOK }}
DISCORD_WEBHOOK_FORUM: ${{ secrets.PAGERDUTY_DISCORD_WEBHOOK }}
ENABLE_FORUM: true

uses: devtron-labs/action-discord@master
with:
args: " [ **${{ github.event.issue.title}}** ](${{github.event.issue.html_url}})"
args: " ${{ github.event.issue.title }} ${{ github.event.issue.html_url }}"

0 comments on commit 5463277

Please sign in to comment.