Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: label issue with version #17484

Merged
merged 7 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/1_bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Borda marked this conversation as resolved.
Show resolved Hide resolved
- "ver: 1.9.x"
- "ver: 2.0.x"
- "ver: master"

- type: markdown
attributes:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/labeler-issue.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Label Pull Requests
on:
- pull_request_target
on: [pull_request_target]

jobs:
triage:
Expand All @@ -12,3 +11,4 @@ jobs:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml