ci: label issue with version (#17484)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jirka Borovec 2023-04-27 16:15:08 +02:00 committed by GitHub
parent 614dcdf502
commit 3a01abbde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 7 deletions

View File

@ -29,13 +29,16 @@ body:
id: versions
attributes:
label: What version are you seeing the problem on?
id: versions
description: select all version where you have experienced this issue
multiple: true
options:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 2.0+
- "ver: 1.6.x"
- "ver: 1.7.x"
- "ver: 1.8.x"
- "ver: 1.9.x"
- "ver: 2.0.x"
- "ver: master"
- type: markdown
attributes:

35
.github/workflows/labeler-issue.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Label Issue
on:
issues:
types: [opened, edited]
permissions:
contents: read
jobs:
label-component:
runs-on: ubuntu-latest
permissions:
# required for all workflows
issues: write
# only required for workflows in private repositories
actions: read
contents: read
steps:
- uses: actions/checkout@v3
- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/1_bug_report.yaml
- name: Set labels based on severity field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: versions
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,6 +1,5 @@
name: Label Pull Requests
on:
- pull_request_target
on: [pull_request_target]
jobs:
triage:
@ -12,3 +11,4 @@ jobs:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml