{"id":143,"date":"2011-10-16T16:32:39","date_gmt":"2011-10-16T07:32:39","guid":{"rendered":"http:\/\/chitora.com\/blog\/?p=143"},"modified":"2011-10-16T16:32:39","modified_gmt":"2011-10-16T07:32:39","slug":"%e9%96%8b%e7%99%ba%e3%82%92%e3%81%a4%e3%81%b6%e3%82%84%e3%81%8f","status":"publish","type":"post","link":"https:\/\/www.chitora.com\/blog\/?p=143","title":{"rendered":"\u958b\u767a\u3092\u3064\u3076\u3084\u304f"},"content":{"rendered":"<p>Gerrit\u306e<a href=\"http:\/\/review.chitora.com\/Documentation\/config-hooks.html#_change_merged\" target=\"_blank\">merge\u30d5\u30c3\u30af<\/a>\u3092\u5229\u7528\u3057\u3066\uff0c\u30bd\u30fc\u30b9\u306e\u5909\u5316\u3092Twitter\u306b\u3064\u3076\u3084\u304f\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>Gerrit\u306b\u30bd\u30fc\u30b9\u3092push\u3057\u3066\uff0c\u30ec\u30d3\u30e5\u30fc\u30a2\u306bapprove\u3055\u308c\u3066\uff0cSubmit\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5909\u66f4\u304c\u30de\u30fc\u30b8\u3055\u308c\u308b\u3068\uff0c\u4e0b\u8a18\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\uff08\u300creview_site\u300d\u306fGerrit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3067\u3059\uff09\u3002<\/p>\n<pre>review_site\/hooks\/change-merged<\/pre>\n<p>\u5b9f\u884c\u3055\u308c\u308b\u969b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>change-merged --change &lt;change id&gt; --change-url &lt;change url&gt; --project &lt;project name&gt; --branch &lt;branch&gt; --submitter &lt;submitter&gt; --commit &lt;sha1&gt;<\/pre>\n<ul>\n<li>change id: Gerrit\u4e0a\u306eURL\u306e\u9023\u756a<\/li>\n<li>change url: Gerrit\u306eURL<\/li>\n<li>project name: git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u540d<\/li>\n<li>branch: \u30de\u30fc\u30b8\u3055\u308c\u305f\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u540d<\/li>\n<li>submitter: \u5909\u66f4\u3092push\u3057\u305f\u4eba<\/li>\n<li>sha1: \u30b3\u30df\u30c3\u30c8\u306ehash<\/li>\n<\/ul>\n<p>\u30c4\u30a4\u30fc\u30c8\u5185\u5bb9\u3068\u3057\u3066\uff0c<\/p>\n<pre>[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8] \u30b3\u30df\u30c3\u30c8\u30b3\u30e1\u30f3\u30c8\u306e\u30b5\u30d6\u30b8\u30a7\u30af\u30c8 Gerrit\u30ec\u30d3\u30e5\u30fcURL\r\n\r\n\u4f8b\uff09 [lhaz] Clean up of sort kind\/reverse\u00a0http:\/\/review.chitora.com\/#change,497<\/pre>\n<p>\u3068\u3064\u3076\u3084\u304d\u305f\u3044\u5834\u5408\uff0cchange-merged\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5185\u5bb9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>#!\/bin\/sh\r\nURL=$4\r\nPROJECT=$6\r\nSHA1=$12\r\ncd ..\/git\/$6.git\r\nTITLE=`git show -s --format=\"%s\" $SHA1`\r\ntwt \"[$PROJECT] $TITLE $URL\"<\/pre>\n<p>\u305d\u308c\u305e\u308c\u5f15\u6570\u3092\u5909\u6570\u306b\u5f15\u304d\u53d6\u308a\uff0c<\/p>\n<pre>cd ..\/git\/$6.git<\/pre>\n<p>\u306b\u3066git\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002hooks\u304b\u3089\u898b\u305f\u76f8\u5bfe\u4f4d\u7f6e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>TITLE=`git show -s --format=\"%s\" $SHA1`<\/pre>\n<p>\u306f\u30b3\u30df\u30c3\u30c8\u306e\u30b5\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u308a\u51fa\u3059git\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\ntwt\u306f\u81ea\u4f5c\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u30c4\u30a4\u30fc\u30c8\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u304c\uff0c\u985e\u4f3c\u306e\u3082\u306e\u304c\u4f7f\u7528\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gerrit\u306emerge\u30d5\u30c3\u30af\u3092\u5229\u7528\u3057\u3066\uff0c\u30bd\u30fc\u30b9\u306e\u5909\u5316\u3092Twitter\u306b\u3064\u3076\u3084\u304f\u65b9\u6cd5\u3067\u3059\u3002 Gerrit\u306b\u30bd\u30fc\u30b9\u3092push\u3057\u3066\uff0c\u30ec\u30d3\u30e5\u30fc\u30a2\u306bapprove\u3055\u308c\u3066\uff0cSubmit\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5909\u66f4\u304c\u30de\u30fc\u30b8\u3055\u308c\u308b\u3068\uff0c\u4e0b\u8a18\u30b9\u30af\u30ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":20,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}