Skip to content

Commit 5463277

Browse files
authored
chore: added workflow for notification on discord forum (#3300)
* added workflow for forum * Update azure-devops-issue-sync.yml
1 parent 758970c commit 5463277

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/azure-devops-issue-sync.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Sync issue to Azure DevOps work item (testing)
33
on:
44
issues:
55
types:
6-
[opened, edited, deleted, closed, reopened]
6+
[opened, edited, deleted, closed, reopened, labeled]
77

88
jobs:
99
create_issues:
@@ -35,11 +35,13 @@ jobs:
3535
ado_close_state: "Done"
3636
ado_bypassrules: true
3737
log_level: 100
38-
- if: contains(github.event.issue.labels.*.name, 'pager-duty')
38+
- if: github.event.label.name == 'pager-duty'
3939
name: custom issues
4040
env:
41-
DISCORD_WEBHOOK: ${{ secrets.PAGERDUTY_DISCORD_WEBHOOK}}
42-
41+
DISCORD_WEBHOOK: ${{ secrets.GITHUB_ISSUES_DISCORD_WEBHOOK }}
42+
DISCORD_WEBHOOK_FORUM: ${{ secrets.PAGERDUTY_DISCORD_WEBHOOK }}
43+
ENABLE_FORUM: true
44+
4345
uses: devtron-labs/action-discord@master
4446
with:
45-
args: " [ **${{ github.event.issue.title}}** ](${{github.event.issue.html_url}})"
47+
args: " ${{ github.event.issue.title }} ${{ github.event.issue.html_url }}"

0 commit comments

Comments
 (0)