github / github/gh-stack

Add a way to turn off the "Stack created with GitHub Stacks CLI" footer

Đang mở
#399 2 bình luận 17 reaction 0 người được giao Xem trên GitHub
feature request topic: cli - submit
Ngôn ngữ chính
Go
Star
1.5k
Fork
70
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Mô tả

## Problem

Every PR that `gh stack submit` or `gh stack link` creates gets this line appended to the bottom of the description:

```
Stack created with GitHub Stacks CLI • Give Feedback 💬
```

There's currently no flag, git config, or environment variable that turns it off. I checked the binary (`strings` on the compiled extension) — the only `gh-stack.*` git-config keys it reads are `gh-stack.remote` and `gh-stack.rerere-declined`. The footer HTML is a hardcoded string, not templated or gated by anything.

## Why this matters more than a cosmetic PR-description line

On repos that use GitHub's squash-merge with "default to pull request title and description" — a common, often-default setting (`squash_merge_commit_message: "PR_BODY"` in the repo API) — the PR body becomes the literal squash commit message when the PR merges.

That means this footer doesn't just live in the PR UI temporarily. It gets written into the **permanent, immutable git log** of the target branch, on every single stacked PR, forever.

## Prior art

Claude Code ships a documented `includeCoAuthoredBy` setting in `settings.json` specifically to let users disable the "🤖 Generated with Claude Code" / "Co-Authored-By: Claude" trailer it otherwise adds to commits and PRs — for the same underlying reason: that text ends up permanently in shared git history, not just in a UI a user can dismiss. The same reasoning applies here.

## Request

A way to suppress the footer, e.g.:

- A `gh-stack.footer=false` git config value (matching the existing pattern of `gh-stack.remote`), or
- A `--no-footer` flag on `submit`/`link`

Either would work — the point is just having *some* opt-out.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Trace the gh stack submit and gh stack link entry points, then inspect the existing gh-stack.remote and gh-stack.rerere-declined configuration handling to find where the hardcoded footer is appended. Decide which requested opt-out fits the CLI conventions; done means the footer remains enabled by default and is omitted when the opt-out is configured or passed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
git, github, go
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
62/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.