{"action":"created","comment":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/50370053","id":50370053,"diff_hunk":"@@ -47,6 +47,8 @@ def destroy\n     snapshot.delete\n \n     render nothing: true, status: 200\n+  rescue Snapshot::VolumeProtectedError => e","path":"app/controllers/snapshots_controller.rb","position":4,"original_position":4,"commit_id":"b454e4027e428fbffd06048fedf404ae2bdb6667","original_commit_id":"b454e4027e428fbffd06048fedf404ae2bdb6667","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Lint/UselessAssignment: Useless assignment to variable - `e`. [:ref](https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars)","created_at":"2016-01-21T08:05:53Z","updated_at":"2016-01-21T08:05:53Z","html_url":"https://github.com/skyarch-networks/skyhopper/pull/198#discussion_r50370053","pull_request_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198","_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments/50370053"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/198#discussion_r50370053"},"pull_request":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198","id":56711241,"html_url":"https://github.com/skyarch-networks/skyhopper/pull/198","diff_url":"https://github.com/skyarch-networks/skyhopper/pull/198.diff","patch_url":"https://github.com/skyarch-networks/skyhopper/pull/198.patch","issue_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/198","number":198,"state":"open","locked":false,"title":"[WIP] Snapshot Retention Policy","user":{"login":"root-beer","id":12095319,"avatar_url":"https://avatars.githubusercontent.com/u/12095319?v=3","gravatar_id":"","url":"https://api.github.com/users/root-beer","html_url":"https://github.com/root-beer","followers_url":"https://api.github.com/users/root-beer/followers","following_url":"https://api.github.com/users/root-beer/following{/other_user}","gists_url":"https://api.github.com/users/root-beer/gists{/gist_id}","starred_url":"https://api.github.com/users/root-beer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-beer/subscriptions","organizations_url":"https://api.github.com/users/root-beer/orgs","repos_url":"https://api.github.com/users/root-beer/repos","events_url":"https://api.github.com/users/root-beer/events{/privacy}","received_events_url":"https://api.github.com/users/root-beer/received_events","type":"User","site_admin":false},"body":"### GOAL\r\n- [ ] Can set number of keeping snapshots\r\n- [ ] Auto deletion of snapshot","created_at":"2016-01-21T06:48:11Z","updated_at":"2016-01-21T08:05:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b0e04af7e127c2b37475034ac963ff52bc8ca6a","assignee":{"login":"root-beer","id":12095319,"avatar_url":"https://avatars.githubusercontent.com/u/12095319?v=3","gravatar_id":"","url":"https://api.github.com/users/root-beer","html_url":"https://github.com/root-beer","followers_url":"https://api.github.com/users/root-beer/followers","following_url":"https://api.github.com/users/root-beer/following{/other_user}","gists_url":"https://api.github.com/users/root-beer/gists{/gist_id}","starred_url":"https://api.github.com/users/root-beer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-beer/subscriptions","organizations_url":"https://api.github.com/users/root-beer/orgs","repos_url":"https://api.github.com/users/root-beer/repos","events_url":"https://api.github.com/users/root-beer/events{/privacy}","received_events_url":"https://api.github.com/users/root-beer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198/commits","review_comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198/comments","review_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/198/comments","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/b454e4027e428fbffd06048fedf404ae2bdb6667","head":{"label":"skyarch-networks:snapshot_retention_policy","ref":"snapshot_retention_policy","sha":"b454e4027e428fbffd06048fedf404ae2bdb6667","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2016-01-15T03:33:31Z","pushed_at":"2016-01-21T08:05:37Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6482,"stargazers_count":20,"watchers_count":20,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":20,"default_branch":"master"}},"base":{"label":"skyarch-networks:master","ref":"master","sha":"811fc6029248809332d969f23c79ac6026744283","user":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"repo":{"id":31754199,"name":"skyhopper","full_name":"skyarch-networks/skyhopper","owner":{"login":"skyarch-networks","id":10970571,"avatar_url":"https://avatars.githubusercontent.com/u/10970571?v=3","gravatar_id":"","url":"https://api.github.com/users/skyarch-networks","html_url":"https://github.com/skyarch-networks","followers_url":"https://api.github.com/users/skyarch-networks/followers","following_url":"https://api.github.com/users/skyarch-networks/following{/other_user}","gists_url":"https://api.github.com/users/skyarch-networks/gists{/gist_id}","starred_url":"https://api.github.com/users/skyarch-networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyarch-networks/subscriptions","organizations_url":"https://api.github.com/users/skyarch-networks/orgs","repos_url":"https://api.github.com/users/skyarch-networks/repos","events_url":"https://api.github.com/users/skyarch-networks/events{/privacy}","received_events_url":"https://api.github.com/users/skyarch-networks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyarch-networks/skyhopper","description":"システム自動構築ツール","fork":false,"url":"https://api.github.com/repos/skyarch-networks/skyhopper","forks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/forks","keys_url":"https://api.github.com/repos/skyarch-networks/skyhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyarch-networks/skyhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyarch-networks/skyhopper/teams","hooks_url":"https://api.github.com/repos/skyarch-networks/skyhopper/hooks","issue_events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/events{/number}","events_url":"https://api.github.com/repos/skyarch-networks/skyhopper/events","assignees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/assignees{/user}","branches_url":"https://api.github.com/repos/skyarch-networks/skyhopper/branches{/branch}","tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/tags","blobs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/skyarch-networks/skyhopper/languages","stargazers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/stargazers","contributors_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contributors","subscribers_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscribers","subscription_url":"https://api.github.com/repos/skyarch-networks/skyhopper/subscription","commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyarch-networks/skyhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyarch-networks/skyhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyarch-networks/skyhopper/contents/{+path}","compare_url":"https://api.github.com/repos/skyarch-networks/skyhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyarch-networks/skyhopper/merges","archive_url":"https://api.github.com/repos/skyarch-networks/skyhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyarch-networks/skyhopper/downloads","issues_url":"https://api.github.com/repos/skyarch-networks/skyhopper/issues{/number}","pulls_url":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/skyarch-networks/skyhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/skyarch-networks/skyhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyarch-networks/skyhopper/labels{/name}","releases_url":"https://api.github.com/repos/skyarch-networks/skyhopper/releases{/id}","created_at":"2015-03-06T05:30:44Z","updated_at":"2016-01-15T03:33:31Z","pushed_at":"2016-01-21T08:05:37Z","git_url":"git://github.com/skyarch-networks/skyhopper.git","ssh_url":"git@github.com:skyarch-networks/skyhopper.git","clone_url":"https://github.com/skyarch-networks/skyhopper.git","svn_url":"https://github.com/skyarch-networks/skyhopper","homepage":"","size":6482,"stargazers_count":20,"watchers_count":20,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198"},"html":{"href":"https://github.com/skyarch-networks/skyhopper/pull/198"},"issue":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/198"},"comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/skyarch-networks/skyhopper/statuses/b454e4027e428fbffd06048fedf404ae2bdb6667"}}}}