From 4ae886bfc7c1cb5d2580efaa272abea29de5a0b8 Mon Sep 17 00:00:00 2001 From: Kevin B Date: Mon, 16 Oct 2023 08:59:42 -0700 Subject: [PATCH] Adding script for setting up a repo (#60) --- SetupRepo.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SetupRepo.ps1 diff --git a/SetupRepo.ps1 b/SetupRepo.ps1 new file mode 100644 index 0000000..166a568 --- /dev/null +++ b/SetupRepo.ps1 @@ -0,0 +1,14 @@ +# This script leverages the GitHub CLI. +# Ensure you have installed and updated it by following the directions here: https://github.com/cli/cli + +# This script assumes it is being executed from the root of a repository + +# Setup acceptable merge types +gh repo edit --enable-merge-commit=false +gh repo edit --enable-squash-merge +gh repo edit --enable-rebase-merge + +# Enable PR Auto Merge + gh repo edit --enable-auto-merge + + #TODO: Setup branch protection rule for default branch \ No newline at end of file