Skip to content

Commit

Permalink
Merge pull request #368 from microsoft/RajeevPentyala-ADO-Git_Sync
Browse files Browse the repository at this point in the history
Update to AzDO to Git sync workflow
  • Loading branch information
RajeevPentyala authored Oct 31, 2023
2 parents 1e7cf69 + f5dc17a commit 4e20478
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/SyncIssueWithAzDo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:
[opened, edited, deleted, closed, reopened, labeled, unlabeled, assigned]
issue_comment:
types: [created, edited, deleted]
concurrency:
group: issue-${{ github.event.issue.number }}
cancel-in-progress: false

jobs:
alert:
if: github.event.label.name == 'enhancement'
runs-on: ubuntu-latest
alertEnhancementAK:
if: |
contains(github.event.issue.labels.*.name, 'enhancement')
runs-on: ubuntu-latest
steps:
- uses: danhellem/github-actions-issue-to-work-item@master
env:
Expand All @@ -19,16 +23,17 @@ jobs:
ado_organization: "cattools"
ado_project: "OneCatTools"
ado_area_path: "OneCatTools\\AutomationKit\\Develop"
ado_iteration_path: "OneCatTools\\FY24\\Q2\\November"
ado_iteration_path: "OneCatTools\\FY24\\Q2\\October"
ado_wit: "User Story"
ado_new_state: "New"
ado_active_state: "Active"
ado_close_state: "Closed"
ado_close_state: "Resolved"
ado_bypassrules: true
log_level: 100

alert2:
if: github.event.label.name == 'bug'
alertIssueAK:
if: |
contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
steps:
- uses: danhellem/github-actions-issue-to-work-item@master
Expand All @@ -38,10 +43,30 @@ jobs:
ado_organization: "cattools"
ado_project: "OneCatTools"
ado_area_path: "OneCatTools\\AutomationKit\\Develop"
ado_iteration_path: "OneCatTools\\FY24\\Q2\\November"
ado_iteration_path: "OneCatTools\\FY24\\Q2\\October"
ado_wit: "Bug"
ado_new_state: "New"
ado_active_state: "Active"
ado_close_state: "Closed"
ado_close_state: "Resolved"
ado_bypassrules: true
log_level: 100

alertQuestionAK:
if: |
contains(github.event.issue.labels.*.name, 'question')
runs-on: ubuntu-latest
steps:
- uses: danhellem/github-actions-issue-to-work-item@master
env:
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
ado_organization: "cattools"
ado_project: "OneCatTools"
ado_area_path: "OneCatTools\\AutomationKit\\Develop"
ado_iteration_path: "OneCatTools\\FY24\\Q2\\October"
ado_wit: "Question"
ado_new_state: "New"
ado_active_state: "Active"
ado_close_state: "Closed"
ado_bypassrules: true
log_level: 100

0 comments on commit 4e20478

Please sign in to comment.