api: a squash merge needs commit_message, and the default merge message follows upstream

未关闭 适合新手
#807 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
api

调研方向

阅读 squash merge API 处理程序及其测试,然后检查 5d8e1801 中引用的规范,确认确切的 HTTP 状态和问题代码。将没有 commit_message 和使用默认合并消息时 squash merge 的行为与文档要求进行比较。缺少消息时返回文档规定的错误,且默认消息与 upstream 一致后,即为完成;为这两种情况添加或更新测试。

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

描述

Problem

Spec 5d8e1801: a squash merge requires commit_message, and the default merge commit message is Merge branch '<source>' into <target>. Live at 3af232d9: a squash merge without a message succeeded, and our default message is Merge mm into main.

Desk decision

Answer the documented 400 for a squash merge without commit_message (breaking for callers who omit it), and switch the default message to upstream's form. Check the spec for the exact status and problem code before coding.

Severity

Low.

Upstream audit 2026-11-12, evidence 2026-11-12-1159UTC. Docs spec 5d8e1801 (ETag W/"8GUlAlKU8eko7Rr2", Last-Modified 2026-11-10 22:29:59 GMT). The cluster still serves ee8092bf, so this is documented drift, not a proven deployment (#234 rule: adopt what the docs publish). SDK 0.1.1 (Nov 10) and 0.1.2 (Nov 11) shipped on npm, PyPI and Go; their route list and token minting are unchanged from 0.1.0.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: medium

主要语言
Go
星标
0
派生
0
平均合并
6 小时 16 分钟
30 天内合并 PR
243

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

coder/openstorage 的其他 Issue

查看 coder/openstorage 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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