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

オープン
#492 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, go
領域
api, cli

調査の方向性

まず gh stack submit のエントリーポイントと、デフォルトダイアログおよび --auto の各パスを追跡します。その際、リポジトリ全体のテンプレートについては github/gh-stack pull request #77 をコンテキストとして使用します。組織全体の PR テンプレートを使って両方のモードを再現し、その後、結果の pull request にそのテンプレートが含まれ、既存のフッターが失われていないことを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
1.5k
フォーク
73
平均マージ
1日 8時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-stack のほかの issue

github/gh-stack の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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