1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Github/GitlabのPR/MRテンプレートメモ

Posted at

Github/GitlabのPR/MRテンプレートについてのメモ書き。

Github

ディレクトリ・ファイル

ファイルの拡張子は .txt でも可。複数の場合に記載の方法は単一ファイルも可。

単一の場合:.github/.md
複数の場合:.github/PULL_REQUEST_TEMPLATE/.md

複数テンプレート

template クエリパラメータを使う。WebUIのサポートなし。

Gitlab

ディレクトリ・ファイル

共通:.gitlab/merge_request_templates/.md

複数テンプレート

上記記法に沿いユースケース毎にファイルを用意する。WebUIのサポートあり。詳細はusing-the-templatesを参照。

その他

Gitlab Quick Actions

IssueやMRのメタデータ等をテキストで表現できる。例えば、テンプレートファイル内に /labes bug と記載しておけばわざわざラベルをふる必要がなくなる。詳細はGitLab Quick Actionsを参照。

所感

WebUIからテンプレートを操作する場合、Gitlabのテンプレート選択フィルタが地味に嬉しい。

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?