Skip to content

📚 [Documentation / WorkFlow] - Want to add security policy #328

📚 [Documentation / WorkFlow] - Want to add security policy

📚 [Documentation / WorkFlow] - Want to add security policy #328

name: Add Label to Issues
on:
issues:
types: [opened]
jobs:
add-labels:
runs-on: ubuntu-latest
permissions:
issues: write
strategy:
matrix:
template: [bug_report.yml, feature.yml, doc.yml]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
- name: Add label to Issues based on policy
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
template: ${{ matrix.template }}
token: ${{ secrets.GITHUB_TOKEN }}