github: Update issue templates to issue forms

Issue forms templates allow us to add automation in place.
This patch replaces old markdown issue templates with new issue forms.
It also adds workflow to automatically mark issues by component label
based on reported data.

This change could help with initial triaging of issues.
This commit is contained in:
Jan Macku
2022-06-23 09:47:42 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 4885d7490b
commit 6b16539879
6 changed files with 303 additions and 64 deletions
+38
View File
@@ -0,0 +1,38 @@
# Inspired by: https://github.com/stefanbuck/ristorante
# See: https://stefanbuck.com/blog/codeless-contributions-with-github-issue-forms
---
name: Issue labeler
on:
issues:
types: [ opened ]
jobs:
label-component:
runs-on: ubuntu-latest
strategy:
matrix:
template: [ bug_report.yml, feature_request.yml ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Parse issue form
uses: stefanbuck/github-issue-praser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
- name: Set labels based on component field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v1
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: component
block-list: |
other
token: ${{ secrets.GITHUB_TOKEN }}