diff --git a/.github/workflows/assign-to-project.yml b/.github/workflows/assign-to-project.yml new file mode 100644 index 0000000000..5b3814488f --- /dev/null +++ b/.github/workflows/assign-to-project.yml @@ -0,0 +1,23 @@ +name: Auto Assign to Project(s) + +on: + issues: + types: [opened, labeled] + pull_request: + types: [opened, labeled] + issue_comment: + types: [created] + +jobs: + assign_high_priority: + runs-on: ubuntu-latest + name: Assign to High Priority project + steps: + - name: Assign issues and pull requests with `priority:high` label to project 25 + uses: srggrs/assign-one-project-github-action@1.3.1 + if: | + contains(github.event.issue.labels.*.name, 'priority:high') || + contains(github.event.pull_request.labels.*.name, 'priority:high') + with: + project: 'https://github.com/ESCOMP/CTSM/projects/25' + column_name: 'Needs triage'