github / github/gh-stack

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

未关闭
#384 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug topic: cli - submit
主要语言
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:

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 摘要。