-
Notifications
You must be signed in to change notification settings - Fork 484
47 lines (44 loc) · 1.64 KB
/
azure-devops-issue-sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Sync issue to Azure DevOps work item (testing)
on:
issues:
types:
[opened, edited, deleted, closed, reopened, labeled]
jobs:
create_issues:
runs-on: ubuntu-latest
steps:
- if: contains(github.event.issue.labels.*.name, 'bug')
uses: danhellem/github-actions-issue-to-work-item@v2.1
env:
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
ado_organization: "DevtronLabs"
ado_project: "Devtron"
ado_wit: "Bug"
ado_new_state: "To Do"
ado_active_state: "Doing"
ado_close_state: "Done"
ado_bypassrules: true
log_level: 100
- if: "!contains(github.event.issue.labels.*.name, 'bug')"
uses: danhellem/github-actions-issue-to-work-item@v2.1
env:
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
ado_organization: "DevtronLabs"
ado_project: "Devtron"
ado_wit: "User Story"
ado_new_state: "To Do"
ado_active_state: "Doing"
ado_close_state: "Done"
ado_bypassrules: true
log_level: 100
- if: github.event.label.name == 'pager-duty'
name: custom issues
env:
DISCORD_WEBHOOK: ${{ secrets.GH_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 }}"