astro/.github/workflows/issue.yml

36 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-01 18:27:29 +00:00
name: Auto Assign Issues to Project
2021-09-01 16:53:42 +00:00
on:
issues:
types: [opened]
2021-09-01 16:53:42 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
auto_assign_issues:
runs-on: ubuntu-latest
name: Auto-assign new issues to projects
steps:
- run: echo "${{github.event.issue.title}}"
- name: Assign Bugs to the Bug Tracker
uses: srggrs/assign-one-project-github-action@1.2.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
2021-09-01 16:53:42 +00:00
with:
2021-09-01 18:29:10 +00:00
project: 'https://github.com/snowpackjs/astro/projects/2'
2021-09-01 16:53:42 +00:00
column_name: 'Needs Triage'
- name: Assign RFCs to the RFC Tracker
uses: srggrs/assign-one-project-github-action@1.2.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
2021-09-01 16:53:42 +00:00
with:
2021-09-01 18:29:10 +00:00
project: 'https://github.com/snowpackjs/astro/projects/3'
2021-09-01 16:53:42 +00:00
column_name: 'Needs Discussion'
- name: Assign RFCs to the RFC Tracker
uses: srggrs/assign-one-project-github-action@1.2.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
2021-09-01 16:53:42 +00:00
with:
2021-09-01 18:29:10 +00:00
project: 'https://github.com/snowpackjs/astro/projects/5'
2021-09-01 18:27:29 +00:00
column_name: 'TODO'