blob: 5995514061ba80920fe4628b1a80fd5dd445a6c2 [file] [log] [blame]
#summary Gerrit and melange
= Introduction =
Add your content here.
= Setup =
{{{
# add remote
git remote add gerrit https://melange-sandbox.googlesource.com/soc
# setup push-for-review script
git config --global alias.push-for-review '!CURRENT=$(git symbolic-ref HEAD) && git push gerrit HEAD:refs/for/master%topic=$CURRENT'
# add change-id hook
curl -Lo `git rev-parse --git-dir`/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x `git rev-parse --git-dir`/hooks/commit-msg
}}}
* Log into the Gerrit UI at least once: https://melange-sandbox-review.googlesource.com
* if the email address in your git commits doesn't line up with the account you log into Gerrit with, you must add that email address: https://melange-sandbox-review.googlesource.com/#/settings/contact
= Code Review =
# Create a branch, work on your change, commit your change.
# git push-for-review
# in the Gerrit web UI, explicitly add at least one reviewer
# review happens.
# if changes are necessary, commit, rebase, go back to step 2.
# click submit button in web ui
= Interesting Links =
https://wiki.openstack.org/wiki/Gerrit_Workflow
= Permission Levels =
* Project Owner
* Committer