Skip to Content
Best PracticesGit Best PracticesGithub Repository Setup

Github Repository Setup

Default settings for new and existing repositories. These can be adjusted to fit specific needs if the project calls for it.

About Settings

  • Add description
  • Add production website
  • Add relevant topics:
    • wordpress, nextjs, internal, django

screenshot-about-location.png

screenshot-about-detail.png

Main Settings

General

  • Turn off all Features - This removes the unused tabs from the menu
  • Turn off squash and rebase merging
  • Turn on Automatically delete head branches

screenshot-pull-requests.png

Code Security

  • Enable Dependency graph
  • Enable Dependabot alerts

screenshot-code-security.png

Rules - Rulesets

  • New ruleset
  • Import pr-review.json
  • Hit Create
Download pr-review.json

CI Requirements

All repos must have a build-test GitHub Actions job that runs on pull requests. This is enforced by the org-level “PR-Review” ruleset — PRs cannot be merged without a passing build-test check.

See CI Requirements for PRs for setup instructions and templates.

Last updated on