I followed the instructions here https://help.github.com/articles/about-codeowners/ but it doesn't seem to work. I even added the CODEOWNERS
file at both the root
and .github
directory. The reviewers specified in the CODEOWNERS
file are not selected automatically when a pull request is created. See screenshots below. Onyone who has set this up, could you point to where the problem is. Thank you.
In the project, select Project settings in the left sidebar. Select Default reviewers under Pull Requests on the left sidebar. Select the Add reviewers button. In the Add default reviewers dialog, add the names of any members of the workspace in which this project resides to add them as a default reviewer.
In Settings-->General-Merge Request Approvals. Click on Add approval Rule. Add Rule name as "Default", Approvals required, desired branch and add members under approvers. These approvers would be your default reviewers for any Merge request.
The biggest difference between "reviewers" and "assignees" is that reviewers actually have a tracked state according to GitHub -- did they review the PR yet or not? With assignees, you can associate people with a PR but beyond that GitHub doesn't really care what that means or what those people need to do.
You can find a pull request where you or a team you're a member of is requested for review with the search qualifier review-requested:[USERNAME] or team-review-requested:[TEAMNAME] . For more information, see "Searching issues and pull requests."
You need to be sure that your base branch has:
Then in the CODEOWNERS file, located either in the root of the repo or in the .github subfolder, you need to have either a user described with '@user', a user described with his email like '[email protected]', or a team described with '@org/teamname'.
You will need also to be sure that:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With