-
Notifications
You must be signed in to change notification settings - Fork 0
Code Reviews
The purpose of this wiki page is to explain what you should do as a code reviewer.
Use git fetch origin to download all of the latest branches from GitHub.
Switch to the branch that is currently under review. If the branch under review was called 123NewFeature, then you could switch to that branch with git checkout -b 123NewFeature origin/123NewFeature.
- The
git checkoutpart means you want to switch to a different branch. -
git checkout -bmeans you want to switch to a branch that doesn't exist yet, so git needs to make it. -
git checkout -b 123NewFeaturemeans that you want to switch to a new branch called123NewFeaturebased on the branch you are currently in (so the new branch will look just like the one you were just in). -
git checkout -b 123NewFeature origin/123NewFeaturemeans switch to a branch called123NewFeaturebased on the branch called123NewFeaturethat exists in the remote repository (GitHub).originbasically means GitHub.
The build script can ensure that the code is good code, but it can't make sure that everything that was supposed to happen in the feature did actually happen. So look at the changes to the view (If GUI changes) and the changes on GitHub (In changes tab at the top of the pull request) and ensure that everything is accounted for. If something is missing/wrong, leave a comment on the pull request.
Do a quick sweep through the changes on GitHub and look for any code that looks like it should be refactored (like lots of repeated code, methods that are too long and should be broken into smaller ones, etc). If you find something that looks like it should be refactored, leave a comment in the pull request about it.
Make sure that the build script passes on your computer. If it doesn't, complain to the person who wrote the code. To run the build script run the command ant from the root directory of the project (the folder named AutoAutoTest).
Once the other person has fixed all violations (or explained why there wasn't an issue), go ahead and merge the code using the merge button at the bottom of the pull request. GitHub should then give you an option to delete the branch. Go ahead and do so.
Finally, mark the task as completed in Rally.