meta: add generator and update bug templates

This commit is contained in:
Vaxry
2026-07-27 13:22:02 +02:00
parent 6484f43742
commit d91db3c707
14 changed files with 164 additions and 0 deletions
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
+9
View File
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
+9
View File
@@ -14,6 +14,15 @@ body:
v0.xx.x
validations:
required: true
- type: dropdown
attributes:
label: Is this a regression? (used to work, doesn't anymore)
multiple: false
options:
- Yes
- No
validations:
required: true
- type: textarea
attributes:
label: What's the bug?
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
set -euo pipefail
dir="${1:-.github/DISCUSSION_TEMPLATE}"
bugs=(
bugs-cmake-meson-nix.yml
bugs-config.yml
bugs-crashes.yml
bugs-drm.yml
bugs-input.yml
bugs-ipc-plugins.yml
bugs-layout.yml
bugs-other.yml
bugs-performance.yml
bugs-renderer.yml
bugs-window-management.yml
bugs-xwayland.yml
)
features=(
feature-requests-config.yml
feature-requests-layouts.yml
feature-requests-other.yml
feature-requests-protocols-integrations.yml
feature-requests-renderer.yml
feature-requests-window-management.yml
)
generate_templates() {
local source="$1"
shift
if [[ ! -f "$dir/$source" ]]; then
printf 'error: source template not found: %s\n' "$dir/$source" >&2
return 1
fi
local filename
for filename in "$@"; do
cp -- "$dir/$source" "$dir/$filename"
printf 'generated %s from %s\n' "$filename" "$source"
done
}
generate_templates bugs.yml "${bugs[@]}"
generate_templates features.yml "${features[@]}"