Skip to content

Commit

Permalink
Merge pull request #2449 from carapace-sh/add-labeler
Browse files Browse the repository at this point in the history
added labeler
  • Loading branch information
rsteube authored Jul 21, 2024
2 parents dab7b7e + 08dda77 commit aea7696
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ body:
label: OS
description: Operating System where this occured.
options:
- label: Darwin
- label: Linux
- label: OSX
- label: Termux
- label: Windows
- type: checkboxes
Expand Down
35 changes: 35 additions & 0 deletions .github/advanced-issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# syntax - https://github.com/redhat-plumbers-in-action/advanced-issue-labeler#policy
---
policy:
- section:
- id: ["os"]
label:
- name: "ver: 1.6.x"
keys: ["v1_6", "v1.6", "1.6.x"]
- name: linux
keys: ["Linux"]
- name: darwin
keys: ["Darwin"]
- name: termux
keys: ["Termux"]
- name: windows
keys: ["Windows"]

- id: ["shell"]
label:
- name: bash
keys: ["Bash"]
- name: elvish
keys: ["Elvish"]
- name: fish
keys: ["Fish"]
- name: nushell
keys: ["Nushell"]
- name: oil
keys: ["Oil"]
- name: powershell
keys: ["Powershell"]
- name: xonsh
keys: ["Xonsh"]
- name: zsh
keys: ["Zsh"]
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 issue labels
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 aea7696

Please sign in to comment.