Auto Assign New Issues to Triage Project #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Assign New Issues to Triage Project | |
on: | |
issues: | |
types: [opened] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
issues: read | |
jobs: | |
assign_one_project: | |
runs-on: ubuntu-latest | |
name: Assign to New Issues to Triage Project | |
steps: | |
- name: Process bug issues | |
uses: takanabe/github-actions-automate-projects@5d004c140c65fa8b4ef3b18a38219ce680bce816 # v2.0.0 | |
if: contains(github.event.issue.labels.*.name, 'bug') && contains(github.event.issue.labels.*.name, '? - Needs Triage') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PROJECT_URL: https://github.com/NVIDIA/cutlass | |
GITHUB_PROJECT_COLUMN_NAME: 'Needs prioritizing' | |
- name: Process feature issues | |
uses: takanabe/github-actions-automate-projects@5d004c140c65fa8b4ef3b18a38219ce680bce816 # v2.0.0 | |
if: contains(github.event.issue.labels.*.name, 'feature request') && contains(github.event.issue.labels.*.name, '? - Needs Triage') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PROJECT_URL: https://github.com/NVIDIA/cutlass | |
GITHUB_PROJECT_COLUMN_NAME: 'Needs prioritizing' | |
- name: Process other issues | |
uses: takanabe/github-actions-automate-projects@5d004c140c65fa8b4ef3b18a38219ce680bce816 # v2.0.0 | |
if: contains(github.event.issue.labels.*.name, '? - Needs Triage') && (!contains(github.event.issue.labels.*.name, 'bug') && !contains(github.event.issue.labels.*.name, 'feature request')) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PROJECT_URL: https://github.com/NVIDIA/cutlass | |
GITHUB_PROJECT_COLUMN_NAME: 'Needs prioritizing' |