github / github/gh-stack

`gh stack submit` with PULL_REQUEST_TEMPLATE.md that has `CRLF` line endings

オープン
#384 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug topic: cli - submit
主要言語
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:

Image

It opens in the submit editor like this (each red mark is an extra newline):

Image

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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。