From 10a563bc545f58f1a9b72062842449fc0b0b6ea0 Mon Sep 17 00:00:00 2001 From: Francis Batac <15894826+francisfuzz@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:47:55 +0000 Subject: [PATCH 1/4] chore: add structured bug report form Require version, environment, reproduction, and terminal details so maintainers can distinguish current defects from issues already fixed in newer releases. Ask reporters to upgrade and reproduce on the latest stable release before submitting a bug. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/bug_report.yml | 115 ++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..c6193fa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,115 @@ +name: Bug report +description: Report a bug or unexpected behavior in gh-stack +title: "[Bug]: " +labels: + - bug +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to report a bug. Please complete the fields below so we can investigate efficiently. + + Before filing, run `gh extension upgrade stack` and confirm the problem still occurs on the latest stable release. + + For security vulnerabilities, follow the instructions in our [security policy](https://github.com/github/gh-stack/security/policy) instead of opening a public issue. + + - type: textarea + id: description + attributes: + label: Describe the bug + description: Clearly describe what went wrong. + placeholder: What happened? + validations: + required: true + + - type: input + id: affected-command + attributes: + label: Affected command + description: Which gh-stack command triggered the problem? + placeholder: gh stack rebase + validations: + required: true + + - type: textarea + id: gh-stack-version + attributes: + label: gh-stack version + description: Paste the exact output from `gh stack version`. + render: shell + validations: + required: true + + - type: textarea + id: gh-version + attributes: + label: GitHub CLI version + description: Paste the exact output from `gh --version`. + render: shell + validations: + required: true + + - type: input + id: operating-system + attributes: + label: Operating system + description: Include the operating system and version. + placeholder: macOS 26.0, Ubuntu 24.04, or Windows 11 + validations: + required: true + + - type: input + id: shell + attributes: + label: Shell + description: Which shell were you using? + placeholder: zsh, bash, fish, or PowerShell + validations: + required: true + + - type: textarea + id: steps-to-reproduce + attributes: + label: Steps to reproduce + description: List the commands and steps needed to reproduce the problem. + placeholder: | + 1. Run `gh stack ...` + 2. Select ... + 3. Observe ... + validations: + required: true + + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + description: What did you expect to happen? + validations: + required: true + + - type: textarea + id: actual-behavior + attributes: + label: Actual behavior + description: What happened instead? + validations: + required: true + + - type: textarea + id: terminal-output + attributes: + label: Terminal output + description: Paste relevant output or write `N/A`. Redact credentials and other sensitive information. + render: shell + validations: + required: true + + - type: checkboxes + id: preflight + attributes: + label: Preflight checks + options: + - label: I searched the existing issues for duplicates. + required: true + - label: I ran `gh extension upgrade stack` and reproduced this issue on the latest stable release. + required: true From c64168c1dc55c63b32855cc1d09759f36da64c83 Mon Sep 17 00:00:00 2001 From: Francis Batac <15894826+francisfuzz@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:35:49 -0700 Subject: [PATCH 2/4] fix: update command in bug report template Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index c6193fa..333eba9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -35,7 +35,7 @@ body: id: gh-stack-version attributes: label: gh-stack version - description: Paste the exact output from `gh stack version`. + description: Paste the exact output from `gh stack --version`. render: shell validations: required: true From 01037d213b600e23aea47e8e8a098953c3f39a2d Mon Sep 17 00:00:00 2001 From: Francis Batac <15894826+francisfuzz@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:36:17 -0700 Subject: [PATCH 3/4] fix: s/textarea/input Co-authored-by: Sameen Karim --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 333eba9..6d05eda 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -40,7 +40,7 @@ body: validations: required: true - - type: textarea + - type: input id: gh-version attributes: label: GitHub CLI version From 165a6a3377987bc8588f5e6761fd1b3ae5c1f076 Mon Sep 17 00:00:00 2001 From: Francis Batac <15894826+francisfuzz@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:36:33 -0700 Subject: [PATCH 4/4] fix: s/textarea/input Co-authored-by: Sameen Karim --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 6d05eda..44ec308 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -31,7 +31,7 @@ body: validations: required: true - - type: textarea + - type: input id: gh-stack-version attributes: label: gh-stack version