ユーザ用ツール

サイト用ツール


github

文書の過去の版を表示しています。


GitHub

Branch Rules

ブランチごとに運用ルールを設定

mainブランチへのマージはmerge commitのみ許可

  1. Settings -> Rules -> Rulesetsを開く
  2. New Ruleset -> New branch rulesetを押す
  3. Ruleset Name  - enforce merge commit to main など適当に
  4. Target Branches
    • include by petternでmainと入力(defaultブランチであればinclude default branchでも可)
  5. Branch rules
    • Restrict deletion: 削除禁止
    • Block force pushes: force push禁止
    • Require a pull request before merging
    • Allowed merge methodsでmergeのみ選択
github.1772682804.txt.gz · 最終更新: by nullpon