From ff7561948d12032ae95ea0a81e43f351ced61d45 Mon Sep 17 00:00:00 2001 From: Geoff Pleiss <824157+gpleiss@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:34:46 -0700 Subject: [PATCH] Update github setup instructions --- course-setup.qmd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/course-setup.qmd b/course-setup.qmd index 505080e..1996856 100644 --- a/course-setup.qmd +++ b/course-setup.qmd @@ -13,6 +13,10 @@ of Stat 406. ## Create a GitHub.com organization * This is free for faculty with instructor credentials. + * **Note** make sure you upgrade the organization to a "Github Team." + If you have registered your instructor credentials with Github, + you should be able to upgrade for free from the [Github Global Campus](https://education.github.com/globalcampus/teacher) page + under "Upgrade your academic organizations." * Allows more comprehensive GitHub actions, PR templates and CODEOWNER behaviour than the UBC Enterprise version (last I checked) * Downside is getting students added (though we include R scripts for this) @@ -103,6 +107,12 @@ junk into these repos. when the PR is opened. * Under Settings > General, select "Template repository". This makes it easier to duplicate to the student repos. +* Setup branch protection rules for the `main` branch. + Create a new ruleset for default branches, and select the following: + * Require a pull request before merging + * Require review from Code Owners + * Block force pushes \ + I recommend adding the @TAs team to the bypass list. ### Labs