summaryrefslogtreecommitdiff
path: root/.github/workflows/issue.yml
blob: cc370ea07ebf24038e64fbba602415c88e99e475 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Auto Assign Issues to Project

on:
  issues:
    types: [opened]

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
      uses: srggrs/assign-one-project-github-action@1.3.1
      if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
      with:
        project: 'https://github.com/withastro/astro/projects/2'
        column_name: 'Needs Triage'

    - name: Assign RFCs to the RFC Tracker
      uses: srggrs/assign-one-project-github-action@1.3.1
      if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
      with:
        project: 'https://github.com/withastro/astro/projects/3'
        column_name: 'Discussing'

    - name: Assign RFCs to the Docs Tracker
      uses: srggrs/assign-one-project-github-action@1.3.1
      if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
      with:
        project: 'https://github.com/withastro/astro/projects/5'
        column_name: 'TODO'