.github: add advanced issue labeler

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-20 01:12:34 +02:00
parent 6e17c3fd11
commit e688551d55
2 changed files with 72 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
policy:
- section:
- id: ['project-area']
block-list: []
label:
- name: 'area:auditor'
keys: ['Auditor']
- name: 'area:auth'
keys: ['Auth']
- name: 'area:catalog'
keys: ['Catalog']
- name: 'area:core'
keys: ['Core Framework', 'CLI Tooling']
- name: 'area:design-system'
keys: ['Design System']
- name: 'area:documentation'
keys: ['Documentation']
- name: 'area:events'
keys: ['Events System']
- name: 'area:home'
keys: ['Home']
- name: 'area:kubernetes'
keys: ['Kubernetes Plugin']
- name: 'area:notifications'
keys: ['Notifications']
- name: 'area:openapi-tooling'
keys: ['OpenAPI Tooling']
- name: 'area:permission'
keys: ['Permission Framework']
- name: 'area:search'
keys: ['Search']
- name: 'area:scaffolder'
keys: ['Software Templates']
- name: 'area:techdocs'
keys: ['TechDocs']
- id: ['integration']
block-list: []
label:
- name: 'integration:aws'
keys: ['AWS']
- name: 'integration:azure'
keys: ['Azure', 'Azure DevOps']
- name: 'integration:bitbucket-cloud'
keys: ['Bitbucket Cloud']
- name: 'integration:bitbucket-server'
keys: ['Bitbucket Server']
- name: 'integration:gcp'
keys: ['GCP']
- name: 'integration:gerrit'
keys: ['Gerrit']
- name: 'integration:gitea'
keys: ['Gitea']
- name: 'integration:github'
keys: ['GitHub']
- name: 'integration:gitlab'
keys: ['GitLab']
+16
View File
@@ -20,6 +20,10 @@ jobs:
with:
egress-policy: audit
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- name: Add issue labels
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
with:
@@ -29,3 +33,15 @@ jobs:
enable-versioned-regex: 0
not-before: 2024-04-19T15:03:51Z
repo-token: '${{ secrets.GITHUB_TOKEN }}'
# These two steps add labels based on user input in the issue form
- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/.common.yaml
- name: Add advanced issue labels
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}