{"action":"closed","number":304,"pull_request":{"url":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304","id":26311355,"html_url":"https://github.com/mozilla/treeherder-service/pull/304","diff_url":"https://github.com/mozilla/treeherder-service/pull/304.diff","patch_url":"https://github.com/mozilla/treeherder-service/pull/304.patch","issue_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/304","number":304,"state":"closed","locked":false,"title":"Bug 1113160 - add git fetch to get new branches for deploying","user":{"login":"camd","id":419924,"avatar_url":"https://avatars.githubusercontent.com/u/419924?v=3","gravatar_id":"","url":"https://api.github.com/users/camd","html_url":"https://github.com/camd","followers_url":"https://api.github.com/users/camd/followers","following_url":"https://api.github.com/users/camd/following{/other_user}","gists_url":"https://api.github.com/users/camd/gists{/gist_id}","starred_url":"https://api.github.com/users/camd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camd/subscriptions","organizations_url":"https://api.github.com/users/camd/orgs","repos_url":"https://api.github.com/users/camd/repos","events_url":"https://api.github.com/users/camd/events{/privacy}","received_events_url":"https://api.github.com/users/camd/received_events","type":"User","site_admin":false},"body":"Without this fetch, you can only deploy to branches that existed when the LAST deploy was done.  By doing ``git fetch`` you get any new branches that were created since the last deploy.  This allows the ``git checkout`` to succeed on line 32.","created_at":"2014-12-18T16:13:33Z","updated_at":"2015-01-06T17:14:26Z","closed_at":"2015-01-06T17:14:26Z","merged_at":"2015-01-06T17:14:26Z","merge_commit_sha":"394afcf0666e3a2ef34268d974e7f2a3efa41e57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304/commits","review_comments_url":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304/comments","review_comment_url":"https://api.github.com/repos/mozilla/treeherder-service/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/304/comments","statuses_url":"https://api.github.com/repos/mozilla/treeherder-service/statuses/44e4c2025d6045f91a5f208e2039c1fdee43350b","head":{"label":"mozilla:fetch-with-chief-deploy","ref":"fetch-with-chief-deploy","sha":"44e4c2025d6045f91a5f208e2039c1fdee43350b","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":8463294,"name":"treeherder-service","full_name":"mozilla/treeherder-service","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/treeherder-service","description":"The backend of treeherder, a replacement for TBPL. See wiki page for where to file bugs.","fork":false,"url":"https://api.github.com/repos/mozilla/treeherder-service","forks_url":"https://api.github.com/repos/mozilla/treeherder-service/forks","keys_url":"https://api.github.com/repos/mozilla/treeherder-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/treeherder-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/treeherder-service/teams","hooks_url":"https://api.github.com/repos/mozilla/treeherder-service/hooks","issue_events_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/treeherder-service/events","assignees_url":"https://api.github.com/repos/mozilla/treeherder-service/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/treeherder-service/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/treeherder-service/tags","blobs_url":"https://api.github.com/repos/mozilla/treeherder-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/treeherder-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/treeherder-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/treeherder-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/treeherder-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/treeherder-service/languages","stargazers_url":"https://api.github.com/repos/mozilla/treeherder-service/stargazers","contributors_url":"https://api.github.com/repos/mozilla/treeherder-service/contributors","subscribers_url":"https://api.github.com/repos/mozilla/treeherder-service/subscribers","subscription_url":"https://api.github.com/repos/mozilla/treeherder-service/subscription","commits_url":"https://api.github.com/repos/mozilla/treeherder-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/treeherder-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/treeherder-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/treeherder-service/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/treeherder-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/treeherder-service/merges","archive_url":"https://api.github.com/repos/mozilla/treeherder-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/treeherder-service/downloads","issues_url":"https://api.github.com/repos/mozilla/treeherder-service/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/treeherder-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/treeherder-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/treeherder-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/treeherder-service/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/treeherder-service/releases{/id}","created_at":"2013-02-27T19:17:37Z","updated_at":"2015-01-06T16:55:23Z","pushed_at":"2015-01-06T17:14:26Z","git_url":"git://github.com/mozilla/treeherder-service.git","ssh_url":"git@github.com:mozilla/treeherder-service.git","clone_url":"https://github.com/mozilla/treeherder-service.git","svn_url":"https://github.com/mozilla/treeherder-service","homepage":"https://wiki.mozilla.org/Auto-tools/Projects/Treeherder","size":377838,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":7,"forks":20,"open_issues":7,"watchers":13,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d9b1aa78f6b4171e79d36b74e844426ce192d069","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":8463294,"name":"treeherder-service","full_name":"mozilla/treeherder-service","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/treeherder-service","description":"The backend of treeherder, a replacement for TBPL. See wiki page for where to file bugs.","fork":false,"url":"https://api.github.com/repos/mozilla/treeherder-service","forks_url":"https://api.github.com/repos/mozilla/treeherder-service/forks","keys_url":"https://api.github.com/repos/mozilla/treeherder-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/treeherder-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/treeherder-service/teams","hooks_url":"https://api.github.com/repos/mozilla/treeherder-service/hooks","issue_events_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/treeherder-service/events","assignees_url":"https://api.github.com/repos/mozilla/treeherder-service/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/treeherder-service/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/treeherder-service/tags","blobs_url":"https://api.github.com/repos/mozilla/treeherder-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/treeherder-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/treeherder-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/treeherder-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/treeherder-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/treeherder-service/languages","stargazers_url":"https://api.github.com/repos/mozilla/treeherder-service/stargazers","contributors_url":"https://api.github.com/repos/mozilla/treeherder-service/contributors","subscribers_url":"https://api.github.com/repos/mozilla/treeherder-service/subscribers","subscription_url":"https://api.github.com/repos/mozilla/treeherder-service/subscription","commits_url":"https://api.github.com/repos/mozilla/treeherder-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/treeherder-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/treeherder-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/treeherder-service/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/treeherder-service/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/treeherder-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/treeherder-service/merges","archive_url":"https://api.github.com/repos/mozilla/treeherder-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/treeherder-service/downloads","issues_url":"https://api.github.com/repos/mozilla/treeherder-service/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/treeherder-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/treeherder-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/treeherder-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/treeherder-service/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/treeherder-service/releases{/id}","created_at":"2013-02-27T19:17:37Z","updated_at":"2015-01-06T16:55:23Z","pushed_at":"2015-01-06T17:14:26Z","git_url":"git://github.com/mozilla/treeherder-service.git","ssh_url":"git@github.com:mozilla/treeherder-service.git","clone_url":"https://github.com/mozilla/treeherder-service.git","svn_url":"https://github.com/mozilla/treeherder-service","homepage":"https://wiki.mozilla.org/Auto-tools/Projects/Treeherder","size":377838,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":7,"forks":20,"open_issues":7,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304"},"html":{"href":"https://github.com/mozilla/treeherder-service/pull/304"},"issue":{"href":"https://api.github.com/repos/mozilla/treeherder-service/issues/304"},"comments":{"href":"https://api.github.com/repos/mozilla/treeherder-service/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/treeherder-service/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/treeherder-service/pulls/304/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/treeherder-service/statuses/44e4c2025d6045f91a5f208e2039c1fdee43350b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"camd","id":419924,"avatar_url":"https://avatars.githubusercontent.com/u/419924?v=3","gravatar_id":"","url":"https://api.github.com/users/camd","html_url":"https://github.com/camd","followers_url":"https://api.github.com/users/camd/followers","following_url":"https://api.github.com/users/camd/following{/other_user}","gists_url":"https://api.github.com/users/camd/gists{/gist_id}","starred_url":"https://api.github.com/users/camd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camd/subscriptions","organizations_url":"https://api.github.com/users/camd/orgs","repos_url":"https://api.github.com/users/camd/repos","events_url":"https://api.github.com/users/camd/events{/privacy}","received_events_url":"https://api.github.com/users/camd/received_events","type":"User","site_admin":false},"comments":3,"review_comments":3,"commits":1,"additions":4,"deletions":2,"changed_files":1}}