Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#399 2 条评论 17 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
git, github, go
领域
cli

调研方向

跟踪 gh stack submit 和 gh stack link 的入口点,然后检查现有的 gh-stack.remote 和 gh-stack.rerere-declined 配置处理逻辑,以找出硬编码 footer 的追加位置。确定所请求的哪个 opt-out 符合 CLI 约定;完成的标准是 footer 默认保持启用,并在配置或传入 opt-out 时省略它。

由索引模型根据 Issue 内容生成。

描述

feature request topic: cli - submit

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.

主要语言
Go
星标
1.5k
派生
73
平均合并
1 天 8 小时
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/gh-stack 的其他 Issue

查看 github/gh-stack 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。