djLint/.github/workflows/issues.yml
2021-10-04 15:55:57 +02:00

23 lines
833 B
YAML

name: issue to project
on:
issues:
types: [labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign issues and with `bug` label to bugs project
uses: srggrs/assign-one-project-github-action@1.2.1
if: contains(github.event.issue.labels.*.name, 'bug')
with:
project: 'https://github.com/Riverside-Healthcare/djLint/projects/1'
column_name: 'Needs triage'
- name: Assign issues and with `enhancement` label to bugs project
uses: srggrs/assign-one-project-github-action@1.2.1
if: contains(github.event.issue.labels.*.name, 'enhancement')
with:
project: 'https://github.com/Riverside-Healthcare/djLint/projects/2'
column_name: 'Needs triage'