Skip to content

Commit

Permalink
Merge pull request #1031 from carapace-sh/issue-labeler
Browse files Browse the repository at this point in the history
added issue labeler
  • Loading branch information
rsteube authored Jul 21, 2024
2 parents 676a4ca + e8bdf9c commit 98290b6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ body:
validations:
required: false
- type: checkboxes
id: os
attributes:
label: OS
description: Operating System where this occured.
Expand All @@ -42,6 +43,7 @@ body:
- label: termux
- label: windows
- type: checkboxes
id: shell
attributes:
label: Shell
description: Shell where this occured.
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Label Issues
on:
issues:
types: [opened, edited]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
issues: write

steps:
- uses: actions/checkout@v4

- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/bug_report.yaml

- name: Set labels based on severity field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 98290b6

Please sign in to comment.