`gh stack submit` with PULL_REQUEST_TEMPLATE.md that has `CRLF` line endings
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 70
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 7
描述
**Problem**
Submit is rendering extra line endings when it sees `CRLF`. Opening in the $EDITOR also has these extra line endings.
**Descirption**
When developing on Windows, it is common for git to normalize line endings to CRLF and then back to LF on commit.
On Windows, given a template with the following:
It opens in the submit editor like this (each red mark is an extra newline):
I replaced `CRLF` with `LF`, and then it works fine.
I have workarounds, just a minor inconvenience.
貢獻指南
研究方向
Reproduce the issue on Windows with a CRLF PULL_REQUEST_TEMPLATE.md, then trace the gh stack submit path that loads the template and opens the editor. Confirm the fix by checking that the template displays without extra line endings and that the existing workaround is no longer needed.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git, go
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100