`gh stack submit` with PULL_REQUEST_TEMPLATE.md that has `CRLF` line endings
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 70
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 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