mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-15 06:30:14 +02:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: Assign to Project
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, labeled]
|
|
pull_request:
|
|
types: [opened, labeled]
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
jobs:
|
|
assign-to-project:
|
|
runs-on: ubuntu-latest
|
|
name: Assign to Project
|
|
steps:
|
|
- name: Assign Issues to Bugs
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
|
with:
|
|
project: 'https://github.com/irongut/CodeCoverageSummary/projects/1'
|
|
column_name: 'Needs triage'
|
|
|
|
- name: Assign Issues to Enhancements
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
|
if: contains(github.event.issue.labels.*.name, 'enhancement')
|
|
with:
|
|
project: 'https://github.com/irongut/CodeCoverageSummary/projects/2'
|
|
column_name: 'To do'
|
|
|
|
- name: Assign PRs to Bugs
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
|
if: contains(github.event.pull_request.labels.*.name, 'bug')
|
|
with:
|
|
project: 'https://github.com/irongut/CodeCoverageSummary/projects/1'
|
|
column_name: 'In Progress'
|
|
|
|
- name: Assign PRs to Enhancements
|
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
|
if: contains(github.event.pull_request.labels.*.name, 'enhancement')
|
|
with:
|
|
project: 'https://github.com/irongut/CodeCoverageSummary/projects/2'
|
|
column_name: 'In Progress'
|