2022-06-10 05:30:42 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
name: Issue labeler
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [ opened ]
|
|
|
|
|
2022-06-23 14:09:36 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-06-10 05:30:42 +00:00
|
|
|
jobs:
|
|
|
|
label-component:
|
2022-06-23 12:16:43 +00:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
issues: write
|
2022-06-10 05:30:42 +00:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
template: [ bug_report.yml, feature_request.yml ]
|
|
|
|
|
|
|
|
steps:
|
2024-03-13 16:48:43 +00:00
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
2022-06-10 05:30:42 +00:00
|
|
|
|
|
|
|
- name: Parse issue form
|
2023-01-06 18:48:52 +00:00
|
|
|
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324
|
2022-06-10 05:30:42 +00:00
|
|
|
id: issue-parser
|
|
|
|
with:
|
|
|
|
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
|
|
|
|
|
|
|
|
- name: Set labels based on component field
|
2024-02-01 09:47:37 +00:00
|
|
|
uses: redhat-plumbers-in-action/advanced-issue-labeler@9e55064634b67244f7deb4211452b4a7217b93de
|
2022-06-10 05:30:42 +00:00
|
|
|
with:
|
|
|
|
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
|
2022-09-07 08:43:48 +00:00
|
|
|
template: ${{ matrix.template }}
|
2022-06-10 05:30:42 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|