From 549f2a482501d54729ce7bb3299940c58419ff19 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 26 Jun 2021 22:19:13 -0400 Subject: [PATCH] Create azuresync.yml --- .github/workflows/azuresync.yml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/azuresync.yml diff --git a/.github/workflows/azuresync.yml b/.github/workflows/azuresync.yml new file mode 100644 index 000000000..41e46cffc --- /dev/null +++ b/.github/workflows/azuresync.yml @@ -0,0 +1,39 @@ +name: Sync issue to Azure DevOps work item + +on: + issues: + types: + [opened, edited, deleted, closed, reopened, labeled, unlabeled, assigned] + +jobs: + alert: + runs-on: ubuntu-latest + steps: + - uses: danhellem/github-actions-issue-to-work-item@master + if: "${{ contains(github.event.issue.labels.*.name, 'Type: Bug') == true }}" + env: + ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}" + github_token: "${{ github.token }}" + ado_organization: "Servarr" + ado_project: "Servarr" + ado_area_path: "Servarr\\Lidarr" + ado_wit: "Bug" + ado_new_state: "New" + ado_active_state: "Active" + ado_close_state: "Closed" + ado_bypassrules: true + log_level: 100 + - uses: danhellem/github-actions-issue-to-work-item@master + if: "${{ contains(github.event.issue.labels.*.name, 'Type: Bug') == false }}" + env: + ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}" + github_token: "${{ github.token }}" + ado_organization: "Servarr" + ado_project: "Servarr" + ado_area_path: "Servarr\\Lidarr" + ado_wit: "User Story" + ado_new_state: "New" + ado_active_state: "Active" + ado_close_state: "Closed" + ado_bypassrules: true + log_level: 100