From 3e09524ed3dd82d45372881498b06a95f1f01623 Mon Sep 17 00:00:00 2001 From: Alex Higgs Date: Wed, 15 May 2024 11:53:19 +0100 Subject: [PATCH] Create ado_sync.yml --- .github/workflows/ado_sync.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ado_sync.yml diff --git a/.github/workflows/ado_sync.yml b/.github/workflows/ado_sync.yml new file mode 100644 index 000000000..069ced10a --- /dev/null +++ b/.github/workflows/ado_sync.yml @@ -0,0 +1,32 @@ +name: Sync issue to Azure DevOps work item + +on: + issues: + types: + [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.issue.pull_request }} + 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: "${{ vars.ADO_ORGANIZATION }}" + ado_project: "${{ vars.ADO_PROJECT_NAME }}" + ado_area_path: "${{ vars.ADO_AREA_PATH }}" + ado_iteration_path: "${{ vars.ADO_ITERATION_PATH }}" + ado_wit: "Product Backlog Item" + ado_new_state: "New" + ado_active_state: "Active" + ado_close_state: "Closed" + ado_bypassrules: true + log_level: 100