LoginSignup
0
0

ブランチ戦略メモ

Posted at

オーナ設定

.github/CODEOWNERS

* @user1 @user2

マッチ条件

xx xx
* 全てのコード
*.js 拡張子が".js"のファイル指定
data/ "data"ディレクトリ以下
/data/ ルート直下にある"data"ディレクトリ以下

オーナ

1 2
@{USER_NAME} ユーザー名
{MAIL_ADDRESS} メールアドレス
@{ORGANIZATION}/{TEAM} 指定チーム

ブランチ保護の適用

1.コードオーナーの設定
2.マージ前にプルリクエストによるレビューを要求

  1. 承認が必要な人数指定: 1
  2. コードオーナーのレビューが必要
    3.コミット履歴の短縮化を要求
    4.指定ユーザーのみプッシュできる

設定手順

repository -> Settings -> Branches -> Add branch protection ruleBAC304C0-CF52-4E5A-B830-843A9D658125.jpeg

Restrict who can push to matching branchesにもチェック入れて、マージ可能なユーザーを追加する。

設定完了後、Create押してルール適応する。

0
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
0
0