{"id":451,"date":"2021-03-31T09:04:52","date_gmt":"2021-03-31T00:04:52","guid":{"rendered":"https:\/\/tech.eshima.info\/?p=451"},"modified":"2021-03-31T09:04:52","modified_gmt":"2021-03-31T00:04:52","slug":"circleci%e3%81%a8slack%e3%81%ae%e9%80%a3%e6%90%ba","status":"publish","type":"post","link":"https:\/\/tech.eshima.info\/?p=451","title":{"rendered":"CircleCI\u3068Slack\u306e\u9023\u643a"},"content":{"rendered":"<p>\u9023\u643a\u65b9\u6cd5\u306fOrbs v4\u3002Webhook\u3068\u304b\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u60c5\u5831\u306f\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u306e\u3067\u7121\u8996\u3002<\/p>\n<p>[CircleCI\u5074]<\/p>\n<p>Project Settings \u2192 Environment Variables<\/p>\n<p>SLACK_ACCESS_TOKEN\u3068SLACK_DEFAULT_CHANNEL\u3092\u8a2d\u5b9a<\/p>\n<p>SLACK_DEFAULT_CHANNEL\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u7248Slack\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u6642\u306eURL\u3067\u30c1\u30e3\u30f3\u30cd\u30ebID\u3092\u78ba\u8a8d\u3057\u3066\u767b\u9332\u3002<\/p>\n<p>https:\/\/app.slack.com\/client\/<team_id>\/<channel_id><\/p>\n<p>\u3068\u3044\u3046\u5f62\u5f0f\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>[Slack\u5074]<\/p>\n<p>\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u3067\u4e0b\u8a18\u306b\u30a2\u30af\u30bb\u30b9<\/p>\n<p><a href=\"https:\/\/api.slack.com\/apps\">https:\/\/api.slack.com\/apps<\/a><\/p>\n<p>\u81ea\u5206\u3067 create app \u3057\u305f\u30a2\u30d7\u30ea\uff08CircleCI\uff09\u3092\u9078\u629e\u3002<\/p>\n<p>\u30b5\u30a4\u30c9\u30d0\u30fc\u306eOAuth &#038; Permissions<\/p>\n<p>User OAuth Token\u3068Bot User OAuth Token\u304c\u3042\u308b\u3002<br \/>\nSlack\u901a\u77e5\u3092\u3069\u3061\u3089\u306b\u3055\u305b\u305f\u3044\u304b\u3067\u3001CircleCI\u306eSLACK_ACCESS_TOKEN\u306b\u5165\u308c\u308b\u30c8\u30fc\u30af\u30f3\u3092\u5909\u3048\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9023\u643a\u65b9\u6cd5\u306fOrbs v4\u3002Webhook\u3068\u304b\u3063\u3066\u66f8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-5"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":1,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}