MuseScore/.github/workflows/ci_issues_triage.yml
2023-03-10 14:46:47 +01:00

62 lines
1.9 KiB
YAML

name: "Issue triage"
on:
issues:
types: [opened, labeled, unlabeled]
permissions:
issues: write
jobs:
add_label:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: 'Add label to issue'
uses: github/issue-labeler@v3.0
with:
repo-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
configuration-path: '.github/issue_add_label_config.yml'
not-before: 2023-02-27T00:00:00Z
enable-versioned-regex: 0
add_to_projects:
if: github.event.action == 'labeled'
runs-on: ubuntu-latest
steps:
- name: 'Engraving'
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/musescore/projects/23
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: engraving
- name: 'Cloud saving/loading'
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/musescore/projects/22
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: cloud
- name: 'Muse Sounds'
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/musescore/projects/21
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 'Muse Sounds'
- name: 'VST'
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/musescore/projects/20
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: VST
assign:
if: github.event.action == 'labeled' || github.event.action == 'unlabeled'
runs-on: ubuntu-latest
steps:
- name: 'Set assignees on issue'
uses: musescore/github_actions/assign-by-label@main
with:
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
configuration-path: '.github/issue_assign_by_label_config.yml'