We use a codeowners file to automatically assign reviews to Pull Requests. We also have Dependabot creating PRs for major versions.
We do not want to automatically add reviews to the PRs created by Dependabot. According to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax it is not possible to use !
to exclude.
Is there a way to:
- Use codeowners for all PRs created but users
- Not assign reviewers on PRs create by Dependabot
Thanks!
I have read the documentation for Codeowners file, and for Dependabot. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/customizing-dependency-updates#setting-reviewers-and-assignees
We do not use any reviews in the Dependabot action.
package.json
andpackage-lock.json
to.github/CODEOWNERS
This makes it work, but if a PR only affects the package files, no code owner will be added π€ If you, or someone else, find a better way, please share it with me π β Hydrometer