github / github/gh-stack

`gh stack submit` does not respect org-wide PR template

未关闭
#492 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
1.5k
派生
70
平均合并
1 天 8 小时
30 天内合并 PR
7

描述

My organisation has an org-wide PR template, just as the one described here: https://github.com/orgs/community/discussions/183776. We used to have these templates in each repo, but they were all the same and repetitve, so we decided to define them in one place. We'd rather not go back to per-repo template.

Unfortunately, `gh stack submit` does not seem to respect them. User has two options with this command:
* By default it opens CLI dialog to enter PR's title and description. It doesn't use the org template
* `--auto` creates PR with some pre-populated footer and nothing else. Again no template is used.

The command supports repo-wide templates, thanks to https://github.com/github/gh-stack/pull/77, but this PR does not seem to take org-wide templates into account.

贡献指南

打开贡献指南

调研方向

首先跟踪 `gh stack submit` 入口点及其默认对话框和 `--auto` 路径,并以 github/gh-stack pull request #77 作为仓库范围模板的上下文。使用组织范围的 PR 模板复现这两种模式,然后验证生成的 pull request 包含该模板,同时保留现有的 footer。

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

评估

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

把新 issue 发到你的邮箱

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