Skip to content

Commit

Permalink
init gha for issues assigning projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Dombek committed Mar 15, 2024
1 parent 3181e58 commit 1fc4474
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/issues-assign-project.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 1fc4474

Please sign in to comment.