Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Created July 17, 2015 04:07
Show Gist options
  • Save kentarosasaki/ac03a0f0b32880294f95 to your computer and use it in GitHub Desktop.
Save kentarosasaki/ac03a0f0b32880294f95 to your computer and use it in GitHub Desktop.
OpenStackにコードをマージするまでの道のり ref: http://qiita.com/kentarosasaki/items/9e782215c7c4f3f1297e
$ sudo yum install -y git-review
$ git clone https://github.com/openstack/openstack-manuals.git
$ cd openstack-manual
$ git config gitreview.scheme https
$ git config gitreview.port 443
$ git config gitreview.username gerrit-test-user <= Gerritに登録されているusernameを入力
$ git config user.name "Taro Yamada"   <= Gerritに登録されているFull Nameを入力
$ git config user.email "xxxxx@yyyyy.com" <= Gerritに登録されているアドレスを入力する
$ git add --all
$ git commit --amend
$ git review
Password for 'https://gerrit-test-user@review.openstack.org:443':
remote: Resolving deltas: 100% (7/7)
remote: Processing changes: updated: 1, refs: 1, done
To https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git
* [new branch] HEAD -> refs/publish/master/bug/123456789
$ git remote add gerrit https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git
$ git review -s -v
2015-07-17 10:20:13.935741 Running: git log --color=never --oneline HEAD^1..HEAD
2015-07-17 10:20:13.938975 Running: git remote
2015-07-17 10:20:13.941349 Running: git branch -a --color=never
Setting up gerrit branch tracking for better rebasing
2015-07-17 10:20:13.943823 Running: git remote update gerrit
Fetching gerrit
From https://review.openstack.org:443/openstack/openstack-manuals
* [new branch] master -> gerrit/master
* [new branch] stable/juno -> gerrit/stable/juno
* [new branch] stable/kilo -> gerrit/stable/kilo
2015-07-17 10:20:16.200501 Running: git rev-parse --show-toplevel --git-dir
2015-07-17 10:20:16.203341 Running: git config --get remote.gerrit.url
2015-07-17 10:20:16.205546 Running: git config --get remote.gerrit.pushurl
Found origin Push URL: https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git
Fetching commit hook from: https://gerrit-test-user@review.openstack.org:443/tools/hooks/commit-msg
2015-07-17 10:20:16.208040 Running: git config --bool --get http.sslVerify
$ git checkout -b bug/123456789
$ git add --all
$ git commit
Launchpadに登録されているBugのTitle
コミットメッセージを入れる
DocImpact <= 必要な場合入れる
Closes-Bug: #123456789
$ git review
Password for 'https://gerrit-test-user@review.openstack.org:443': <= Gerritの設定ページのHTTP Passwordの項目にあるパスワードを入力
remote: Resolving deltas: 100% (4/4)
remote: Processing changes: new: 1, refs: 1, done
remote:
remote: New Changes:
remote: https://review.openstack.org/987654321
remote:
To https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git
* [new branch] HEAD -> refs/publish/master/bug/123456789
OpenStack Infra (hudson-openstack) wrote 1 minute ago: Fix proposed to openstack-manuals (master)
Fix proposed to branch: master
Review: https://review.openstack.org/987654321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment