diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index a78cabb..7e704ba 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -7,27 +7,78 @@ body: attributes: value: Thanks for taking the time to fill out this bug report! - - type: input + - type: dropdown + id: component + attributes: + label: Component + description: Please chose components related to this issue. + multiple: true + # When updating list of components please also update labeling policy + # policy: `.github/advanced-issue-labeler.yml` + options: + - 'Dasharo firmware' + - 'Dasharo Tools Suite' + - 'Dasharo documentation' + - 'EC firmware' + - 'other' + validations: + required: true + + - type: dropdown id: device attributes: label: Device - description: The model of device you're using Dasharo on. + description: Model of device(s) on which issue was seen on + multiple: true + # When updating list of components please also update labeling policy + # policy: `.github/advanced-issue-labeler.yml` + options: + - 'Asus KGPE-D16' + - 'Dell OptiPlex 7010' + - 'Dell OptiPlex 9010' + - 'MSI Pro Z690-A' + - 'MSI Pro Z790-P' + - 'NovaCustom NV4x 11th Gen' + - 'NovaCustom NV4x 12th Gen' + - 'NovaCustom NS5x 11th Gen' + - 'NovaCustom NS5x 12th Gen' + - 'NovaCustom NS7x 11th Gen' + - 'NovaCustom NS7x 12th Gen' + - 'PC Engines APU2' + - 'PC Engines APU3' + - 'PC Engines APU4' + - 'PC Engines APU6' + - 'Protectli FW2B' + - 'Protectli FW4B' + - 'Protectli FW4C' + - 'Protectli FW6' + - 'Protectli VP2410' + - 'Protectli VP2420' + - 'Protectli VP4630' + - 'Protectli VP4650' + - 'Protectli VP4670' + - 'Protectli VP6630' + - 'Protectli VP6650' + - 'Protectli VP6670' + - 'QEMU Q35 Emulator' + - 'Raptor CS Talos II' + - 'other' validations: required: true - type: input - id: version + id: version-fw attributes: label: Dasharo version - description: The version of Dasharo you're using (e.g., `v0.2.0`), or coreboot and edk2 commit hashes if built from an untagged revision + description: The version of Dasharo firmware (e.g., `v0.2.0`), or commit hashes if built from an untagged revision; skip if Dasharo firmware has not been used validations: - required: true + required: false - - type: textarea - id: component + - type: input + id: version-dts attributes: - label: Affected component(s) or functionality - description: The component or functionality of Dasharo that is not working as expected. + label: Dasharo Tools Suite version + description: The version of Dasharo Tools Suite (e.g., `v1.2.0`), or commit hashes if built from an untagged revision; skip if Dasharo Tool Suite has not been used validations: required: false @@ -83,7 +134,7 @@ body: id: context attributes: label: Additional context - description: Add any other context about the problem here. + description: Add any other context about the problem here. You can elaborate here if any of the selections from the list did not match. validations: required: false diff --git a/.github/advanced-issue-labeler.yml b/.github/advanced-issue-labeler.yml new file mode 100644 index 0000000..80b58b4 --- /dev/null +++ b/.github/advanced-issue-labeler.yml @@ -0,0 +1,70 @@ +policy: + - template: [bug_report.yml, feature_request.yml] + section: + - id: [component] + block-list: [other] + label: + - name: firmware + keys: ['Dasharo firmware'] + + - name: DasharoToolsSuite + keys: ['Dasharo Tools Suite'] + + - name: doc + keys: ['Dasharo documentation'] + + - name: EC + keys: ['EC firmware'] + - id: [device] + block-list: [other] + label: + - name: asus_kgpe-d16 + keys: ['Asus KGPE-D16'] + + - name: dell_optiplex_9010 + keys: ['Dell OptiPlex 7010', 'Dell OptiPlex 9010'] + + - name: 'MSI PRO Z690-A boards' + keys: ['MSI Pro Z690-A'] + + - name: 'MSI PRO Z790-P boards' + keys: ['MSI Pro Z790-P'] + + - name: novacustom_nv4x_tgl + keys: ['NovaCustom NV4x 11th Gen'] + + - name: novacustom_nv4x_adl + keys: ['NovaCustom NV4x 12th Gen'] + + - name: novacustom_ns5x/7x_tgl + keys: ['NovaCustom NS5x 11th Gen', 'NovaCustom NS7x 11th Gen'] + + - name: novacustom_ns5x/7x_adl + keys: ['NovaCustom NS5x 11th Gen', 'NovaCustom NS7x 12th Gen'] + + - name: pcengines_apu2 + keys: ['PC Engines APU2', 'PC Engines APU3', 'PC Engines APU4', 'PC Engines APU6'] + + - name: protectli_vault_bsw + keys: ['Protectli FW2B', 'Protectli FW4B', 'Protectli FW4C'] + + - name: protectli_vault_kbl + keys: ['Protectli FW6'] + + - name: protectli_vault_glk + keys: ['Protectli VP2410'] + + - name: protectli_vault_ehl + keys: ['Protectli VP2420'] + + - name: protectli_vault_cml + keys: ['Protectli VP4630', 'Protectli VP4650', 'Protectli VP4670'] + + - name: protectli_vault_adl + keys: ['Protectli VP6630', 'Protectli VP6650', 'Protectli VP6670'] + + - name: qemu_q35 + keys: ['QEMU Q35 Emulator'] + + - name: raptor-cs_talos-2 + keys: ['Raptor CS Talos II'] diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_labeler.yml new file mode 100644 index 0000000..e71153a --- /dev/null +++ b/.github/workflows/issue_labeler.yml @@ -0,0 +1,36 @@ +--- + +name: Issue labeler +on: + issues: + types: [ opened ] + +permissions: + contents: read + +jobs: + label-component: + runs-on: ubuntu-22.04 + + permissions: + issues: write + + strategy: + matrix: + template: [ bug_report.yml, feature_request.yml ] + + steps: + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + + - name: Parse issue form + uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 + 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@9e55064634b67244f7deb4211452b4a7217b93de + with: + issue-form: ${{ steps.issue-parser.outputs.jsonString }} + template: ${{ matrix.template }} + token: ${{ secrets.GITHUB_TOKEN }}