diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..8afc85e43 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +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] + +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: "brighthealthnorge" + ado_project: "Youtube%20Clone" + ado_area_path: "optional_area_path\\optional_area_path" + ado_iteration_path: "optional_iteration_path\\optional_iteration_path" + ado_wit: "User Story" + ado_new_state: "New" + ado_active_state: "Active" + ado_close_state: "Closed" + ado_bypassrules: true + log_level: 100