Skip to content
Edit this page View source of this page

Configure your GitHub repository

After you've created your repository, adjust the files inherited from the template and decide which settings to enable on GitHub. You'll need permission to manage the repository for settings such as rulesets or Pages.

Update ownership and contribution files

  • Edit .github/CODEOWNERS and replace the inherited owner with a user or team that has write access to your repository. Code owners
  • Update the issue forms and pull request template to match the project you are building. Choose the information you actually need from reporters and reviewers. Issue templates · Pull request template
  • Review the inherited funding account and code of conduct contact before inviting contributors. Funding · Code of conduct

Set up checks and merge rules

  1. In Actions, confirm that you can see CI Pipeline. If your default branch isn't main, review the branch filters in the workflow files and update them as needed. Open a pull request against your default branch and verify that Repository checks runs.
  2. If you want to require a passing check before merging, open Settings → Rules → Rulesets, configure a branch ruleset for your default branch, and select the check that appeared on the pull request. Configure code owner review separately if your project needs it. GitHub ruleset options
  3. If you want the included patch auto-merge policy, enable auto-merge and squash merging under the repository's pull request settings. Review the Dependabot policy workflow before enabling it.

Set up the documentation site

Use Settings → Pages and choose GitHub Actions as the source if this repository will publish its docs. Update the site details and URL for your own project, then follow Write and publish your docs.