Requesting code review for bulk files and projects
In some circumstances, you may want specific parts of a git repository reviewed by the PullRequest network outside the context of a pull/merge request (ie - a collection of files or the entire repository).
The following steps outline the most secure way of creating a PullRequest review job within your version control hosting provider. These commands work on Mac, Linux, and Windows PowerShell.
Steps:
1. Check out the latest code locally for the repository that you want reviewed
2. cd
into your repository's local checkout.
3. Delete visible files/folders within this directory.
Make sure you are in the root of your local repository that is tracked by git already as mentioned on the line above.
4. Checkout and create a branch called deleted_code
5. Add your local changes of deleting the files.
6. Commit these changes.
7. Push this branch to git origin.
8. Checkout and create a branch called code_to_review
9. Grab all of the code from your main repository branch (likely master
or develop
).
10. This should have added all of the files you deleted back. Add them to git staging.
11. Commit changes of adding back code.
12. Push code_to_review
branch to git origin.
13. Then open a pull/merge request in your version control hosting provider (ie - GitHub, Bitbucket, GitLab):
14. Request a code review from the PullRequest network by:
Logging in to PullRequest and connect to your provider.
Selecting the Pull Requests ( or Merge Requests ) page from the sidebar.
Clicking "Request" in the PullRequest App.
Alternatively, you can also request the code review by adding [pr] to the title of the pull/merge request.
Last updated