-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a new workflow and accompanying configuration files that apply labels to new issues based on options chosen by the submitter in the issue form. - `.github/IssueTriager.yml` - Single reusable workflow to apply labels to issues based on user input in issue forms. - `.sync/workflows/config/triage-issues/advanced-issue-labeler.yml` - Configures how labels are applied to issues based on issue form input. - `.sync/workflows/leaf/triage-issues.yml` - A leaf workflow that can be synced to repos to trigger the reusable workflow in Mu DevOps. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
- Loading branch information
Showing
6 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This workflow assists with initial triage of new issues by applying | ||
# labels based on data provided in the issue. | ||
# | ||
# Configuration file that maps issue form input values to labels: | ||
# advanced-issue-labeler.yml | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
# For more information, see: | ||
# https://github.com/stefanbuck/github-issue-parser | ||
# https://github.com/redhat-plumbers-in-action/advanced-issue-labeler | ||
|
||
name: Issue Triage Workflow | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
triage_issues: | ||
name: Triage Issues | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
template: [ bug_report.yml, documentation_request.yml, feature_request.yml ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Parse Issue Form | ||
uses: stefanbuck/github-issue-parser@v2 | ||
id: issue-parser | ||
with: | ||
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }} | ||
|
||
- name: Apply Labels from Triage | ||
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2 | ||
with: | ||
issue-form: ${{ steps.issue-parser.outputs.jsonString }} | ||
template: ${{ matrix.template }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
.sync/workflows/config/triage-issues/advanced-issue-labeler.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Defines the mappings between GitHub issue responses and labels applied to the issue | ||
# for Project Mu repos. | ||
# | ||
# IMPORTANT: Only use labels defined in the .github/Labels.yml file in this repo. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
# For more information, see: | ||
# https://github.com/redhat-plumbers-in-action/advanced-issue-labeler | ||
|
||
policy: | ||
- template: [bug_report.yml, documentation_request.yml, feature_request.yml] | ||
section: | ||
|
||
# Issue Template - Urgency Dropdown | ||
- id: ['urgency'] | ||
block-list: [] | ||
label: | ||
- name: 'urgency:low' | ||
keys: ['Low'] | ||
- name: 'urgency:medium' | ||
keys: ['Medium'] | ||
- name: 'urgency:high' | ||
keys: ['High'] | ||
|
||
# Issue Template - Fix Owner Dropdown | ||
- id: ['fix_owner', 'request_owner'] | ||
block-list: [] | ||
label: | ||
- name: 'state:needs-owner' | ||
keys: [ | ||
'Someone else needs to fix it', | ||
'Someone else needs to make the change', | ||
'Someone else needs to implement the feature' | ||
] | ||
- name: 'state:needs-triage' | ||
keys: [ | ||
'Someone else needs to fix it', | ||
'Someone else needs to make the change', | ||
'Someone else needs to implement the feature' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This workflow assists with initial triage of new issues by applying | ||
# labels based on data provided in the issue. | ||
# | ||
# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there | ||
# instead of the file in this repo. | ||
# | ||
# - Mu DevOps Repo: https://github.com/microsoft/mu_devops | ||
# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
|
||
name: Initial Triage for New Issue | ||
|
||
on: | ||
issues: | ||
types: [ opened ] | ||
|
||
jobs: | ||
sync: | ||
uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters