Skip to content

Migrate Dependabot reviewers to codeowners #2032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

HonkingGoose
Copy link
Contributor

@HonkingGoose HonkingGoose commented May 8, 2025

Changes

  • Migrate from Dependabot's reviewers field to a CODEOWNERS file

Context

GitHub is going to stop listening to the reviewers field in the Dependabot config file soon (Tuesday 27 May). GitHub recommends using a CODEOWNERS file to control who must review incoming PRs.

The CODEOWNERS config pings @ben for all incoming PRs, and requires their approval before merge.

GitHub recommends explictly listing the code owner for the CODEOWNERS file. I'm following that recommendation in this PR.

I think you (@ben) will need to set up branch protection rules to make sure the CODEOWNERS need to review the changes before merge? Quote from the GitHub Docs:

Repository owners can update branch protection rules to ensure that changed code is reviewed by the owners of the changed files. Edit your branch protection rule and enable the option "Require review from Code Owners". For more information, see About protected branches.

References

# GitHub recommends listing the code owner in the CODEOWNER file.
# This means changes to the CODEOWNERS file must be reviewed by the code owner.

/.github/CODEOWNERS @ben
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should add a "backup codeowner", so the organization can unblock itself when you're not around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant