{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/runbld/pulls/comments/44317390","id":44317390,"diff_hunk":"@@ -31,6 +33,22 @@\n       (throw+ {:error ::invalid-job-name\n                :msg \"please set $JOB_NAME in the format 'org,repo,branch'\"}))))\n \n+(defn wrap-git-repo [proc]\n+  (fn [opts]\n+    (if (nil? (get-in opts [:git :remote]))\n+      (if (environ/env :dev)\n+        (proc (assoc opts :build (merge (:build opts) {:commit \"fake\"})))\n+        (throw+ {:error ::no-git-remote\n+                 :msg (format \"no remote set for %s\"\n+                              (with-out-str","path":"src/runbld/build.clj","position":22,"original_position":22,"commit_id":"87faf8b4a631fc8b71845a45d7bfd5cfc2be2a51","original_commit_id":"87faf8b4a631fc8b71845a45d7bfd5cfc2be2a51","user":{"login":"dakrone","id":19060,"avatar_url":"https://avatars.githubusercontent.com/u/19060?v=3","gravatar_id":"","url":"https://api.github.com/users/dakrone","html_url":"https://github.com/dakrone","followers_url":"https://api.github.com/users/dakrone/followers","following_url":"https://api.github.com/users/dakrone/following{/other_user}","gists_url":"https://api.github.com/users/dakrone/gists{/gist_id}","starred_url":"https://api.github.com/users/dakrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakrone/subscriptions","organizations_url":"https://api.github.com/users/dakrone/orgs","repos_url":"https://api.github.com/users/dakrone/repos","events_url":"https://api.github.com/users/dakrone/events{/privacy}","received_events_url":"https://api.github.com/users/dakrone/received_events","type":"User","site_admin":false},"body":"You could use `pr-str` instead of `(with-out-str (pr ...))`","created_at":"2015-11-09T19:18:00Z","updated_at":"2015-11-09T19:18:00Z","html_url":"https://github.com/elastic/runbld/pull/1#discussion_r44317390","pull_request_url":"https://api.github.com/repos/elastic/runbld/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/elastic/runbld/pulls/comments/44317390"},"html":{"href":"https://github.com/elastic/runbld/pull/1#discussion_r44317390"},"pull_request":{"href":"https://api.github.com/repos/elastic/runbld/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/runbld/pulls/1","id":50162856,"html_url":"https://github.com/elastic/runbld/pull/1","diff_url":"https://github.com/elastic/runbld/pull/1.diff","patch_url":"https://github.com/elastic/runbld/pull/1.patch","issue_url":"https://api.github.com/repos/elastic/runbld/issues/1","number":1,"state":"open","locked":false,"title":"Add git support","user":{"login":"drewr","id":6202,"avatar_url":"https://avatars.githubusercontent.com/u/6202?v=3","gravatar_id":"","url":"https://api.github.com/users/drewr","html_url":"https://github.com/drewr","followers_url":"https://api.github.com/users/drewr/followers","following_url":"https://api.github.com/users/drewr/following{/other_user}","gists_url":"https://api.github.com/users/drewr/gists{/gist_id}","starred_url":"https://api.github.com/users/drewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewr/subscriptions","organizations_url":"https://api.github.com/users/drewr/orgs","repos_url":"https://api.github.com/users/drewr/repos","events_url":"https://api.github.com/users/drewr/events{/privacy}","received_events_url":"https://api.github.com/users/drewr/received_events","type":"User","site_admin":false},"body":"Creates a workflow to cache a clone of a repo and clone it to a workspace, tracking metadata along the way to index.","created_at":"2015-11-09T19:04:00Z","updated_at":"2015-11-09T19:18:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea0f131f1fa91fb21cfc4694a2207f4f12b04fd2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elastic/runbld/pulls/1/commits","review_comments_url":"https://api.github.com/repos/elastic/runbld/pulls/1/comments","review_comment_url":"https://api.github.com/repos/elastic/runbld/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/runbld/issues/1/comments","statuses_url":"https://api.github.com/repos/elastic/runbld/statuses/87faf8b4a631fc8b71845a45d7bfd5cfc2be2a51","head":{"label":"elastic:git","ref":"git","sha":"87faf8b4a631fc8b71845a45d7bfd5cfc2be2a51","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":45572533,"name":"runbld","full_name":"elastic/runbld","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/runbld","description":"It wraps!","fork":false,"url":"https://api.github.com/repos/elastic/runbld","forks_url":"https://api.github.com/repos/elastic/runbld/forks","keys_url":"https://api.github.com/repos/elastic/runbld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/runbld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/runbld/teams","hooks_url":"https://api.github.com/repos/elastic/runbld/hooks","issue_events_url":"https://api.github.com/repos/elastic/runbld/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/runbld/events","assignees_url":"https://api.github.com/repos/elastic/runbld/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/runbld/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/runbld/tags","blobs_url":"https://api.github.com/repos/elastic/runbld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/runbld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/runbld/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/runbld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/runbld/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/runbld/languages","stargazers_url":"https://api.github.com/repos/elastic/runbld/stargazers","contributors_url":"https://api.github.com/repos/elastic/runbld/contributors","subscribers_url":"https://api.github.com/repos/elastic/runbld/subscribers","subscription_url":"https://api.github.com/repos/elastic/runbld/subscription","commits_url":"https://api.github.com/repos/elastic/runbld/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/runbld/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/runbld/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/runbld/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/runbld/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/runbld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/runbld/merges","archive_url":"https://api.github.com/repos/elastic/runbld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/runbld/downloads","issues_url":"https://api.github.com/repos/elastic/runbld/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/runbld/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/runbld/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/runbld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/runbld/labels{/name}","releases_url":"https://api.github.com/repos/elastic/runbld/releases{/id}","created_at":"2015-11-04T22:48:26Z","updated_at":"2015-11-04T22:48:46Z","pushed_at":"2015-11-09T19:07:41Z","git_url":"git://github.com/elastic/runbld.git","ssh_url":"git@github.com:elastic/runbld.git","clone_url":"https://github.com/elastic/runbld.git","svn_url":"https://github.com/elastic/runbld","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"c39767e9eda700a46a25c4252f28de1423e3f189","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":45572533,"name":"runbld","full_name":"elastic/runbld","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/runbld","description":"It wraps!","fork":false,"url":"https://api.github.com/repos/elastic/runbld","forks_url":"https://api.github.com/repos/elastic/runbld/forks","keys_url":"https://api.github.com/repos/elastic/runbld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/runbld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/runbld/teams","hooks_url":"https://api.github.com/repos/elastic/runbld/hooks","issue_events_url":"https://api.github.com/repos/elastic/runbld/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/runbld/events","assignees_url":"https://api.github.com/repos/elastic/runbld/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/runbld/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/runbld/tags","blobs_url":"https://api.github.com/repos/elastic/runbld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/runbld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/runbld/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/runbld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/runbld/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/runbld/languages","stargazers_url":"https://api.github.com/repos/elastic/runbld/stargazers","contributors_url":"https://api.github.com/repos/elastic/runbld/contributors","subscribers_url":"https://api.github.com/repos/elastic/runbld/subscribers","subscription_url":"https://api.github.com/repos/elastic/runbld/subscription","commits_url":"https://api.github.com/repos/elastic/runbld/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/runbld/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/runbld/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/runbld/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/runbld/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/runbld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/runbld/merges","archive_url":"https://api.github.com/repos/elastic/runbld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/runbld/downloads","issues_url":"https://api.github.com/repos/elastic/runbld/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/runbld/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/runbld/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/runbld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/runbld/labels{/name}","releases_url":"https://api.github.com/repos/elastic/runbld/releases{/id}","created_at":"2015-11-04T22:48:26Z","updated_at":"2015-11-04T22:48:46Z","pushed_at":"2015-11-09T19:07:41Z","git_url":"git://github.com/elastic/runbld.git","ssh_url":"git@github.com:elastic/runbld.git","clone_url":"https://github.com/elastic/runbld.git","svn_url":"https://github.com/elastic/runbld","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/runbld/pulls/1"},"html":{"href":"https://github.com/elastic/runbld/pull/1"},"issue":{"href":"https://api.github.com/repos/elastic/runbld/issues/1"},"comments":{"href":"https://api.github.com/repos/elastic/runbld/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/runbld/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/runbld/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/runbld/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/runbld/statuses/87faf8b4a631fc8b71845a45d7bfd5cfc2be2a51"}}}}