From 1fc44745ccf6c2247aa5e3d50ccb2609df44b1c1 Mon Sep 17 00:00:00 2001 From: Derek Dombek Date: Fri, 15 Mar 2024 14:08:15 -0600 Subject: [PATCH] init gha for issues assigning projects --- .github/workflows/issues-assign-project.yml | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/issues-assign-project.yml diff --git a/.github/workflows/issues-assign-project.yml b/.github/workflows/issues-assign-project.yml new file mode 100644 index 00000000..3e394b2a --- /dev/null +++ b/.github/workflows/issues-assign-project.yml @@ -0,0 +1,34 @@ +name: Add bugs to bugs project + +on: + push: + branches: + - IDWA-17-Auto-assign-projects-to-issues + issues: + types: + - opened + - labeled + +jobs: + add-to-dedupe-project: + if: ${{ github.event.label.name == 'dedupe' }} + name: Add issue to dedupe project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@RELEASE_VERSION + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/CDCgov/projects/34 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + add-to-ocr-project: + if: ${{ github.event.label.name == 'OCR' }} + name: Add issue to the ocr project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@RELEASE_VERSION + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/CDCgov/projects/33 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} \ No newline at end of file