Skip to content

feat(desktop): add setting to disable PR stack footer#14637

Open
swushi wants to merge 1 commit into
gitbutlerapp:masterfrom
swushi:sam/desktop-disable-pr-stack-footer
Open

feat(desktop): add setting to disable PR stack footer#14637
swushi wants to merge 1 commit into
gitbutlerapp:masterfrom
swushi:sam/desktop-disable-pr-stack-footer

Conversation

@swushi

@swushi swushi commented Jul 6, 2026

Copy link
Copy Markdown

🧢 Changes

  • Added a Reviews.enableStackFooter setting (default true) to the Rust settings layer
  • Regenerated types
  • Added a "Add GitButler stack footer to PR/MR descriptions" toggle in integration settings
  • Gated every footer writer on the new setting

☕️ Reasoning

The GitButler stack footer was always appended to PR/MR descriptions with no way to opt out, which conflicts with users who maintain their own repo-specific stack-list tooling. Rather than a one-off flag, I added it to the existing Reviews settings group. It defaults to enabled to preserve current behavior.

🎫 Affected issues

Fixes: #14282

image

Adds a Reviews.enableStackFooter setting (default true) that gates the
GitButler stack list footer appended to PR/MR descriptions. Exposed as a
toggle in integration settings and honored at every footer writer: PR
creation and stack/branch drag operations.
@swushi swushi marked this pull request as ready for review July 7, 2026 16:15
Copilot AI review requested due to automatic review settings July 7, 2026 16:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Reviews.enableStackFooter setting (defaulting to true) that allows users of the desktop app to opt out of GitButler’s automatic PR/MR stack footer updates, with a corresponding UI toggle in Integration settings.

Changes:

  • Added enableStackFooter to the Rust Reviews settings model, defaults, update API, and testsupport defaults.
  • Regenerated the but-sdk TypeScript types to expose Reviews.enableStackFooter.
  • Gated PR/MR stack footer updates in desktop flows (PR creation + stack/branch drag-drop) behind the new setting, and added a UI toggle to control it.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/but-sdk/src/generated/linear/index.d.ts Exposes Reviews.enableStackFooter in generated SDK typings.
packages/but-sdk/src/generated/graph/index.d.ts Exposes Reviews.enableStackFooter in generated SDK typings.
crates/but-testsupport/src/sandbox.rs Ensures test sandbox settings include enable_stack_footer: true.
crates/but-settings/src/app_settings.rs Adds the new enable_stack_footer field to Reviews settings schema.
crates/but-settings/src/api.rs Adds enable_stack_footer to ReviewsUpdate and applies it in update_reviews().
crates/but-settings/assets/defaults.jsonc Sets reviews.enableStackFooter default to true.
apps/desktop/src/lib/dragging/dropHandlers/stackDropHandler.ts Stops updating stack PR descriptions when the setting is disabled.
apps/desktop/src/lib/dragging/dropHandlers/branchDropHandler.ts Stops updating stack PR descriptions when the setting is disabled.
apps/desktop/src/components/settings/IntegrationsSettings.svelte Adds the “Add GitButler stack footer…” toggle wired to updateReviews().
apps/desktop/src/components/forge/ReviewCreation.svelte Gates initial stack footer writing after PR creation behind the setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add the option to reorder/disable stack list in PR bodies

2 participants