2021-09-01 18:27:29 +00:00
|
|
|
name: Auto Assign Issues to Project
|
2021-09-01 16:53:42 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
2021-09-01 18:33:09 +00:00
|
|
|
types: [opened]
|
2022-03-09 16:12:12 +00:00
|
|
|
|
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:
|
|
|
|
- name: Assign Bugs to the Bug Tracker
|
2022-03-09 16:12:12 +00:00
|
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
2021-09-01 18:33:09 +00:00
|
|
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
|
2021-09-01 16:53:42 +00:00
|
|
|
with:
|
2021-11-23 22:47:05 +00:00
|
|
|
project: 'https://github.com/withastro/astro/projects/2'
|
2021-09-01 16:53:42 +00:00
|
|
|
column_name: 'Needs Triage'
|
|
|
|
|
|
|
|
- name: Assign RFCs to the RFC Tracker
|
2022-03-09 16:12:12 +00:00
|
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
2021-09-01 18:33:09 +00:00
|
|
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
|
2021-09-01 16:53:42 +00:00
|
|
|
with:
|
2021-11-23 22:47:05 +00:00
|
|
|
project: 'https://github.com/withastro/astro/projects/3'
|
2021-09-18 05:51:54 +00:00
|
|
|
column_name: 'Discussing'
|
2021-09-01 16:53:42 +00:00
|
|
|
|
2021-09-18 05:51:54 +00:00
|
|
|
- name: Assign RFCs to the Docs Tracker
|
2022-03-09 16:12:12 +00:00
|
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
2021-09-01 18:33:09 +00:00
|
|
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
|
2021-09-01 16:53:42 +00:00
|
|
|
with:
|
2021-11-23 22:47:05 +00:00
|
|
|
project: 'https://github.com/withastro/astro/projects/5'
|
2021-09-01 22:57:36 +00:00
|
|
|
column_name: 'TODO'
|