{"action":"created","comment":{"url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/comments/92574548","pull_request_review_id":13091759,"id":92574548,"diff_hunk":"@@ -0,0 +1,51 @@\n+module Ruboty\n+  module Capistrano\n+    module Actions\n+      class Deployment < Ruboty::Actions::Base\n+        include Ruboty::Capistrano::GitHubRepositoryValidator\n+\n+        attr_reader :role, :branch, :errors\n+\n+        def initialize(role: , branch:)\n+          @role = role\n+          @branch = branch\n+          @errors = []\n+        end\n+\n+        def run\n+          return unless validates\n+\n+          deploy\n+          errors.empty?\n+        end\n+\n+        def message_before_deploy\n+          \"#{env}環境の#{role}にBRANCH:#{branch}をdeployします\"","path":"lib/ruboty/capistrano/actions/deployment.rb","position":23,"original_position":23,"commit_id":"97e1e8cb4de9b0e325fb54b459afd690f410738d","original_commit_id":"97e1e8cb4de9b0e325fb54b459afd690f410738d","user":{"login":"kawakubox","id":1255116,"avatar_url":"https://avatars.githubusercontent.com/u/1255116?v=3","gravatar_id":"","url":"https://api.github.com/users/kawakubox","html_url":"https://github.com/kawakubox","followers_url":"https://api.github.com/users/kawakubox/followers","following_url":"https://api.github.com/users/kawakubox/following{/other_user}","gists_url":"https://api.github.com/users/kawakubox/gists{/gist_id}","starred_url":"https://api.github.com/users/kawakubox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kawakubox/subscriptions","organizations_url":"https://api.github.com/users/kawakubox/orgs","repos_url":"https://api.github.com/users/kawakubox/repos","events_url":"https://api.github.com/users/kawakubox/events{/privacy}","received_events_url":"https://api.github.com/users/kawakubox/received_events","type":"User","site_admin":false},"body":"ruboty の場合、 view は、 ruboty 本体がそれを内包すると考えてます。\r\n\r\nこのままでいいのでは？？？　と思います。。","created_at":"2016-12-15T09:45:15Z","updated_at":"2016-12-15T09:48:50Z","html_url":"https://github.com/speee/ruboty-capistrano/pull/6#discussion_r92574548","pull_request_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/comments/92574548"},"html":{"href":"https://github.com/speee/ruboty-capistrano/pull/6#discussion_r92574548"},"pull_request":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6","id":97945734,"html_url":"https://github.com/speee/ruboty-capistrano/pull/6","diff_url":"https://github.com/speee/ruboty-capistrano/pull/6.diff","patch_url":"https://github.com/speee/ruboty-capistrano/pull/6.patch","issue_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/6","number":6,"state":"open","locked":false,"title":"Refactoring deployment","user":{"login":"selmertsx","id":1563239,"avatar_url":"https://avatars.githubusercontent.com/u/1563239?v=3","gravatar_id":"","url":"https://api.github.com/users/selmertsx","html_url":"https://github.com/selmertsx","followers_url":"https://api.github.com/users/selmertsx/followers","following_url":"https://api.github.com/users/selmertsx/following{/other_user}","gists_url":"https://api.github.com/users/selmertsx/gists{/gist_id}","starred_url":"https://api.github.com/users/selmertsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selmertsx/subscriptions","organizations_url":"https://api.github.com/users/selmertsx/orgs","repos_url":"https://api.github.com/users/selmertsx/repos","events_url":"https://api.github.com/users/selmertsx/events{/privacy}","received_events_url":"https://api.github.com/users/selmertsx/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-14T12:48:02Z","updated_at":"2016-12-15T09:56:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9f5727124d0e76774933899f56416fb5c9bf875","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6/commits","review_comments_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6/comments","review_comment_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/comments{/number}","comments_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/6/comments","statuses_url":"https://api.github.com/repos/speee/ruboty-capistrano/statuses/97e1e8cb4de9b0e325fb54b459afd690f410738d","head":{"label":"speee:refactoring_deployment","ref":"refactoring_deployment","sha":"97e1e8cb4de9b0e325fb54b459afd690f410738d","user":{"login":"speee","id":12638362,"avatar_url":"https://avatars.githubusercontent.com/u/12638362?v=3","gravatar_id":"","url":"https://api.github.com/users/speee","html_url":"https://github.com/speee","followers_url":"https://api.github.com/users/speee/followers","following_url":"https://api.github.com/users/speee/following{/other_user}","gists_url":"https://api.github.com/users/speee/gists{/gist_id}","starred_url":"https://api.github.com/users/speee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speee/subscriptions","organizations_url":"https://api.github.com/users/speee/orgs","repos_url":"https://api.github.com/users/speee/repos","events_url":"https://api.github.com/users/speee/events{/privacy}","received_events_url":"https://api.github.com/users/speee/received_events","type":"Organization","site_admin":false},"repo":{"id":61934082,"name":"ruboty-capistrano","full_name":"speee/ruboty-capistrano","owner":{"login":"speee","id":12638362,"avatar_url":"https://avatars.githubusercontent.com/u/12638362?v=3","gravatar_id":"","url":"https://api.github.com/users/speee","html_url":"https://github.com/speee","followers_url":"https://api.github.com/users/speee/followers","following_url":"https://api.github.com/users/speee/following{/other_user}","gists_url":"https://api.github.com/users/speee/gists{/gist_id}","starred_url":"https://api.github.com/users/speee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speee/subscriptions","organizations_url":"https://api.github.com/users/speee/orgs","repos_url":"https://api.github.com/users/speee/repos","events_url":"https://api.github.com/users/speee/events{/privacy}","received_events_url":"https://api.github.com/users/speee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/speee/ruboty-capistrano","description":"ruboty capistrano plugin","fork":false,"url":"https://api.github.com/repos/speee/ruboty-capistrano","forks_url":"https://api.github.com/repos/speee/ruboty-capistrano/forks","keys_url":"https://api.github.com/repos/speee/ruboty-capistrano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/speee/ruboty-capistrano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/speee/ruboty-capistrano/teams","hooks_url":"https://api.github.com/repos/speee/ruboty-capistrano/hooks","issue_events_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/events{/number}","events_url":"https://api.github.com/repos/speee/ruboty-capistrano/events","assignees_url":"https://api.github.com/repos/speee/ruboty-capistrano/assignees{/user}","branches_url":"https://api.github.com/repos/speee/ruboty-capistrano/branches{/branch}","tags_url":"https://api.github.com/repos/speee/ruboty-capistrano/tags","blobs_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/refs{/sha}","trees_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/speee/ruboty-capistrano/statuses/{sha}","languages_url":"https://api.github.com/repos/speee/ruboty-capistrano/languages","stargazers_url":"https://api.github.com/repos/speee/ruboty-capistrano/stargazers","contributors_url":"https://api.github.com/repos/speee/ruboty-capistrano/contributors","subscribers_url":"https://api.github.com/repos/speee/ruboty-capistrano/subscribers","subscription_url":"https://api.github.com/repos/speee/ruboty-capistrano/subscription","commits_url":"https://api.github.com/repos/speee/ruboty-capistrano/commits{/sha}","git_commits_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/commits{/sha}","comments_url":"https://api.github.com/repos/speee/ruboty-capistrano/comments{/number}","issue_comment_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/comments{/number}","contents_url":"https://api.github.com/repos/speee/ruboty-capistrano/contents/{+path}","compare_url":"https://api.github.com/repos/speee/ruboty-capistrano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/speee/ruboty-capistrano/merges","archive_url":"https://api.github.com/repos/speee/ruboty-capistrano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/speee/ruboty-capistrano/downloads","issues_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues{/number}","pulls_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls{/number}","milestones_url":"https://api.github.com/repos/speee/ruboty-capistrano/milestones{/number}","notifications_url":"https://api.github.com/repos/speee/ruboty-capistrano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/speee/ruboty-capistrano/labels{/name}","releases_url":"https://api.github.com/repos/speee/ruboty-capistrano/releases{/id}","deployments_url":"https://api.github.com/repos/speee/ruboty-capistrano/deployments","created_at":"2016-06-25T08:27:12Z","updated_at":"2016-12-05T10:12:22Z","pushed_at":"2016-12-14T12:48:02Z","git_url":"git://github.com/speee/ruboty-capistrano.git","ssh_url":"git@github.com:speee/ruboty-capistrano.git","clone_url":"https://github.com/speee/ruboty-capistrano.git","svn_url":"https://github.com/speee/ruboty-capistrano","homepage":null,"size":58,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"speee:master","ref":"master","sha":"85e45d2b63485193d4e2a2e9d673435224ba27de","user":{"login":"speee","id":12638362,"avatar_url":"https://avatars.githubusercontent.com/u/12638362?v=3","gravatar_id":"","url":"https://api.github.com/users/speee","html_url":"https://github.com/speee","followers_url":"https://api.github.com/users/speee/followers","following_url":"https://api.github.com/users/speee/following{/other_user}","gists_url":"https://api.github.com/users/speee/gists{/gist_id}","starred_url":"https://api.github.com/users/speee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speee/subscriptions","organizations_url":"https://api.github.com/users/speee/orgs","repos_url":"https://api.github.com/users/speee/repos","events_url":"https://api.github.com/users/speee/events{/privacy}","received_events_url":"https://api.github.com/users/speee/received_events","type":"Organization","site_admin":false},"repo":{"id":61934082,"name":"ruboty-capistrano","full_name":"speee/ruboty-capistrano","owner":{"login":"speee","id":12638362,"avatar_url":"https://avatars.githubusercontent.com/u/12638362?v=3","gravatar_id":"","url":"https://api.github.com/users/speee","html_url":"https://github.com/speee","followers_url":"https://api.github.com/users/speee/followers","following_url":"https://api.github.com/users/speee/following{/other_user}","gists_url":"https://api.github.com/users/speee/gists{/gist_id}","starred_url":"https://api.github.com/users/speee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speee/subscriptions","organizations_url":"https://api.github.com/users/speee/orgs","repos_url":"https://api.github.com/users/speee/repos","events_url":"https://api.github.com/users/speee/events{/privacy}","received_events_url":"https://api.github.com/users/speee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/speee/ruboty-capistrano","description":"ruboty capistrano plugin","fork":false,"url":"https://api.github.com/repos/speee/ruboty-capistrano","forks_url":"https://api.github.com/repos/speee/ruboty-capistrano/forks","keys_url":"https://api.github.com/repos/speee/ruboty-capistrano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/speee/ruboty-capistrano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/speee/ruboty-capistrano/teams","hooks_url":"https://api.github.com/repos/speee/ruboty-capistrano/hooks","issue_events_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/events{/number}","events_url":"https://api.github.com/repos/speee/ruboty-capistrano/events","assignees_url":"https://api.github.com/repos/speee/ruboty-capistrano/assignees{/user}","branches_url":"https://api.github.com/repos/speee/ruboty-capistrano/branches{/branch}","tags_url":"https://api.github.com/repos/speee/ruboty-capistrano/tags","blobs_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/refs{/sha}","trees_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/speee/ruboty-capistrano/statuses/{sha}","languages_url":"https://api.github.com/repos/speee/ruboty-capistrano/languages","stargazers_url":"https://api.github.com/repos/speee/ruboty-capistrano/stargazers","contributors_url":"https://api.github.com/repos/speee/ruboty-capistrano/contributors","subscribers_url":"https://api.github.com/repos/speee/ruboty-capistrano/subscribers","subscription_url":"https://api.github.com/repos/speee/ruboty-capistrano/subscription","commits_url":"https://api.github.com/repos/speee/ruboty-capistrano/commits{/sha}","git_commits_url":"https://api.github.com/repos/speee/ruboty-capistrano/git/commits{/sha}","comments_url":"https://api.github.com/repos/speee/ruboty-capistrano/comments{/number}","issue_comment_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues/comments{/number}","contents_url":"https://api.github.com/repos/speee/ruboty-capistrano/contents/{+path}","compare_url":"https://api.github.com/repos/speee/ruboty-capistrano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/speee/ruboty-capistrano/merges","archive_url":"https://api.github.com/repos/speee/ruboty-capistrano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/speee/ruboty-capistrano/downloads","issues_url":"https://api.github.com/repos/speee/ruboty-capistrano/issues{/number}","pulls_url":"https://api.github.com/repos/speee/ruboty-capistrano/pulls{/number}","milestones_url":"https://api.github.com/repos/speee/ruboty-capistrano/milestones{/number}","notifications_url":"https://api.github.com/repos/speee/ruboty-capistrano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/speee/ruboty-capistrano/labels{/name}","releases_url":"https://api.github.com/repos/speee/ruboty-capistrano/releases{/id}","deployments_url":"https://api.github.com/repos/speee/ruboty-capistrano/deployments","created_at":"2016-06-25T08:27:12Z","updated_at":"2016-12-05T10:12:22Z","pushed_at":"2016-12-14T12:48:02Z","git_url":"git://github.com/speee/ruboty-capistrano.git","ssh_url":"git@github.com:speee/ruboty-capistrano.git","clone_url":"https://github.com/speee/ruboty-capistrano.git","svn_url":"https://github.com/speee/ruboty-capistrano","homepage":null,"size":58,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6"},"html":{"href":"https://github.com/speee/ruboty-capistrano/pull/6"},"issue":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/issues/6"},"comments":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/speee/ruboty-capistrano/statuses/97e1e8cb4de9b0e325fb54b459afd690f410738d"}}}}
{"actor":{"display_login":"kawakubox"}}