{"action":"created","comment":{"url":"https://api.github.com/repos/google/shipshape/pulls/comments/27740867","id":27740867,"diff_hunk":"@@ -308,6 +315,9 @@ func streamsAnalyze(image, absRoot string, analyzerContainers []string, req *rpc\n }\n \n func pull(image string) {\n+\tif !docker.OutOfDate(image) {","path":"shipshape/cli/shipshape.go","position":56,"original_position":47,"commit_id":"6fd52b9033d847578dc2230b9ec0e07d740ce809","original_commit_id":"9e389c3f4785df6ac962d05d5f4d074716921422","user":{"login":"ciera","id":1661243,"avatar_url":"https://avatars.githubusercontent.com/u/1661243?v=3","gravatar_id":"","url":"https://api.github.com/users/ciera","html_url":"https://github.com/ciera","followers_url":"https://api.github.com/users/ciera/followers","following_url":"https://api.github.com/users/ciera/following{/other_user}","gists_url":"https://api.github.com/users/ciera/gists{/gist_id}","starred_url":"https://api.github.com/users/ciera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciera/subscriptions","organizations_url":"https://api.github.com/users/ciera/orgs","repos_url":"https://api.github.com/users/ciera/repos","events_url":"https://api.github.com/users/ciera/events{/privacy}","received_events_url":"https://api.github.com/users/ciera/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-04-03T17:10:35Z","updated_at":"2015-04-03T17:10:35Z","html_url":"https://github.com/google/shipshape/pull/20#discussion_r27740867","pull_request_url":"https://api.github.com/repos/google/shipshape/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/google/shipshape/pulls/comments/27740867"},"html":{"href":"https://github.com/google/shipshape/pull/20#discussion_r27740867"},"pull_request":{"href":"https://api.github.com/repos/google/shipshape/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/google/shipshape/pulls/20","id":32459886,"html_url":"https://github.com/google/shipshape/pull/20","diff_url":"https://github.com/google/shipshape/pull/20.diff","patch_url":"https://github.com/google/shipshape/pull/20.patch","issue_url":"https://api.github.com/repos/google/shipshape/issues/20","number":20,"state":"open","locked":false,"title":"Semi long lived service","user":{"login":"ciera","id":1661243,"avatar_url":"https://avatars.githubusercontent.com/u/1661243?v=3","gravatar_id":"","url":"https://api.github.com/users/ciera","html_url":"https://github.com/ciera","followers_url":"https://api.github.com/users/ciera/followers","following_url":"https://api.github.com/users/ciera/following{/other_user}","gists_url":"https://api.github.com/users/ciera/gists{/gist_id}","starred_url":"https://api.github.com/users/ciera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciera/subscriptions","organizations_url":"https://api.github.com/users/ciera/orgs","repos_url":"https://api.github.com/users/ciera/repos","events_url":"https://api.github.com/users/ciera/events{/privacy}","received_events_url":"https://api.github.com/users/ciera/received_events","type":"User","site_admin":false},"body":"Turns shipshape into a semi-long-lived service. It will only tear down the container and restart it when the image it has pulled does not match the image running. Still to do is to only pull images when they are N days out of date.","created_at":"2015-04-01T20:55:50Z","updated_at":"2015-04-03T17:10:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83eac67e0717dc0b8950ebcc88bc762df1a784c2","assignee":{"login":"collinw","id":5001095,"avatar_url":"https://avatars.githubusercontent.com/u/5001095?v=3","gravatar_id":"","url":"https://api.github.com/users/collinw","html_url":"https://github.com/collinw","followers_url":"https://api.github.com/users/collinw/followers","following_url":"https://api.github.com/users/collinw/following{/other_user}","gists_url":"https://api.github.com/users/collinw/gists{/gist_id}","starred_url":"https://api.github.com/users/collinw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinw/subscriptions","organizations_url":"https://api.github.com/users/collinw/orgs","repos_url":"https://api.github.com/users/collinw/repos","events_url":"https://api.github.com/users/collinw/events{/privacy}","received_events_url":"https://api.github.com/users/collinw/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/shipshape/pulls/20/commits","review_comments_url":"https://api.github.com/repos/google/shipshape/pulls/20/comments","review_comment_url":"https://api.github.com/repos/google/shipshape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/shipshape/issues/20/comments","statuses_url":"https://api.github.com/repos/google/shipshape/statuses/6fd52b9033d847578dc2230b9ec0e07d740ce809","head":{"label":"google:semi-long-lived-service","ref":"semi-long-lived-service","sha":"6fd52b9033d847578dc2230b9ec0e07d740ce809","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":29615409,"name":"shipshape","full_name":"google/shipshape","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/shipshape","description":null,"fork":false,"url":"https://api.github.com/repos/google/shipshape","forks_url":"https://api.github.com/repos/google/shipshape/forks","keys_url":"https://api.github.com/repos/google/shipshape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/shipshape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/shipshape/teams","hooks_url":"https://api.github.com/repos/google/shipshape/hooks","issue_events_url":"https://api.github.com/repos/google/shipshape/issues/events{/number}","events_url":"https://api.github.com/repos/google/shipshape/events","assignees_url":"https://api.github.com/repos/google/shipshape/assignees{/user}","branches_url":"https://api.github.com/repos/google/shipshape/branches{/branch}","tags_url":"https://api.github.com/repos/google/shipshape/tags","blobs_url":"https://api.github.com/repos/google/shipshape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/shipshape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/shipshape/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/shipshape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/shipshape/statuses/{sha}","languages_url":"https://api.github.com/repos/google/shipshape/languages","stargazers_url":"https://api.github.com/repos/google/shipshape/stargazers","contributors_url":"https://api.github.com/repos/google/shipshape/contributors","subscribers_url":"https://api.github.com/repos/google/shipshape/subscribers","subscription_url":"https://api.github.com/repos/google/shipshape/subscription","commits_url":"https://api.github.com/repos/google/shipshape/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/shipshape/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/shipshape/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/shipshape/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/shipshape/contents/{+path}","compare_url":"https://api.github.com/repos/google/shipshape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/shipshape/merges","archive_url":"https://api.github.com/repos/google/shipshape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/shipshape/downloads","issues_url":"https://api.github.com/repos/google/shipshape/issues{/number}","pulls_url":"https://api.github.com/repos/google/shipshape/pulls{/number}","milestones_url":"https://api.github.com/repos/google/shipshape/milestones{/number}","notifications_url":"https://api.github.com/repos/google/shipshape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/shipshape/labels{/name}","releases_url":"https://api.github.com/repos/google/shipshape/releases{/id}","created_at":"2015-01-21T21:16:07Z","updated_at":"2015-04-03T16:25:31Z","pushed_at":"2015-04-03T17:10:11Z","git_url":"git://github.com/google/shipshape.git","ssh_url":"git@github.com:google/shipshape.git","clone_url":"https://github.com/google/shipshape.git","svn_url":"https://github.com/google/shipshape","homepage":null,"size":285712,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":12,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"1f59ccb62ef5e75345c392dc0504731ca4665432","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":29615409,"name":"shipshape","full_name":"google/shipshape","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/shipshape","description":null,"fork":false,"url":"https://api.github.com/repos/google/shipshape","forks_url":"https://api.github.com/repos/google/shipshape/forks","keys_url":"https://api.github.com/repos/google/shipshape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/shipshape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/shipshape/teams","hooks_url":"https://api.github.com/repos/google/shipshape/hooks","issue_events_url":"https://api.github.com/repos/google/shipshape/issues/events{/number}","events_url":"https://api.github.com/repos/google/shipshape/events","assignees_url":"https://api.github.com/repos/google/shipshape/assignees{/user}","branches_url":"https://api.github.com/repos/google/shipshape/branches{/branch}","tags_url":"https://api.github.com/repos/google/shipshape/tags","blobs_url":"https://api.github.com/repos/google/shipshape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/shipshape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/shipshape/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/shipshape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/shipshape/statuses/{sha}","languages_url":"https://api.github.com/repos/google/shipshape/languages","stargazers_url":"https://api.github.com/repos/google/shipshape/stargazers","contributors_url":"https://api.github.com/repos/google/shipshape/contributors","subscribers_url":"https://api.github.com/repos/google/shipshape/subscribers","subscription_url":"https://api.github.com/repos/google/shipshape/subscription","commits_url":"https://api.github.com/repos/google/shipshape/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/shipshape/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/shipshape/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/shipshape/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/shipshape/contents/{+path}","compare_url":"https://api.github.com/repos/google/shipshape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/shipshape/merges","archive_url":"https://api.github.com/repos/google/shipshape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/shipshape/downloads","issues_url":"https://api.github.com/repos/google/shipshape/issues{/number}","pulls_url":"https://api.github.com/repos/google/shipshape/pulls{/number}","milestones_url":"https://api.github.com/repos/google/shipshape/milestones{/number}","notifications_url":"https://api.github.com/repos/google/shipshape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/shipshape/labels{/name}","releases_url":"https://api.github.com/repos/google/shipshape/releases{/id}","created_at":"2015-01-21T21:16:07Z","updated_at":"2015-04-03T16:25:31Z","pushed_at":"2015-04-03T17:10:11Z","git_url":"git://github.com/google/shipshape.git","ssh_url":"git@github.com:google/shipshape.git","clone_url":"https://github.com/google/shipshape.git","svn_url":"https://github.com/google/shipshape","homepage":null,"size":285712,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/shipshape/pulls/20"},"html":{"href":"https://github.com/google/shipshape/pull/20"},"issue":{"href":"https://api.github.com/repos/google/shipshape/issues/20"},"comments":{"href":"https://api.github.com/repos/google/shipshape/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/google/shipshape/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/google/shipshape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/shipshape/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/google/shipshape/statuses/6fd52b9033d847578dc2230b9ec0e07d740ce809"}}}}