{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1","id":44330384,"html_url":"https://github.com/buildkite/heroku-buildkite-agent/pull/1","diff_url":"https://github.com/buildkite/heroku-buildkite-agent/pull/1.diff","patch_url":"https://github.com/buildkite/heroku-buildkite-agent/pull/1.patch","issue_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/1","number":1,"state":"closed","locked":false,"title":"Add Heroku button to make agent setup almost 1-click","user":{"login":"bjeanes","id":2560,"avatar_url":"https://avatars.githubusercontent.com/u/2560?v=3","gravatar_id":"","url":"https://api.github.com/users/bjeanes","html_url":"https://github.com/bjeanes","followers_url":"https://api.github.com/users/bjeanes/followers","following_url":"https://api.github.com/users/bjeanes/following{/other_user}","gists_url":"https://api.github.com/users/bjeanes/gists{/gist_id}","starred_url":"https://api.github.com/users/bjeanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjeanes/subscriptions","organizations_url":"https://api.github.com/users/bjeanes/orgs","repos_url":"https://api.github.com/users/bjeanes/repos","events_url":"https://api.github.com/users/bjeanes/events{/privacy}","received_events_url":"https://api.github.com/users/bjeanes/received_events","type":"User","site_admin":false},"body":"This adds the following button to the `README`:\r\n\r\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)\r\n\r\nIt also adds an [`app.json`](https://devcenter.heroku.com/articles/app-json-schema) to allow Heroku to automatically configure the app and prompt for the agent token.\r\n\r\n@keithpitt @toolmantim If you like the look of this, you can add the button into the Agents tab on Buildkite.com and [add the `?template=` parameter](https://devcenter.heroku.com/articles/heroku-button#adding-an-explicit-parameter) pointing to the repo (clicking from the `README` works via the referer). Better yet, [add `?env[BUILDKITE_AGENT_TOKEN]=TOKEN`](https://devcenter.heroku.com/articles/heroku-button#parametrizing-buttons) so that the token is already filled in and they just have to confirm the deploy:\r\n\r\n![create a new app heroku 2015-09-07 18-18-44](https://cloud.githubusercontent.com/assets/2560/9712279/f4a93144-558c-11e5-9fbe-4bd93906dbb0.png)\r\n\r\nLastly, once these buttons are deployed a few times, this will automatically start showing up on on https://elements.heroku.com/buttons which can potentially act as a new customer channel.\r\n\r\nLet me know if you have any questions!","created_at":"2015-09-07T08:20:51Z","updated_at":"2015-09-07T15:42:10Z","closed_at":"2015-09-07T15:42:10Z","merged_at":"2015-09-07T15:42:10Z","merge_commit_sha":"dd5629d54f490be1de601dd30319bc33b3b5cb56","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1/commits","review_comments_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1/comments","review_comment_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/1/comments","statuses_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/statuses/9493560ee35c286d5938c5598d2bc0ce9467333b","head":{"label":"bjeanes:master","ref":"master","sha":"9493560ee35c286d5938c5598d2bc0ce9467333b","user":{"login":"bjeanes","id":2560,"avatar_url":"https://avatars.githubusercontent.com/u/2560?v=3","gravatar_id":"","url":"https://api.github.com/users/bjeanes","html_url":"https://github.com/bjeanes","followers_url":"https://api.github.com/users/bjeanes/followers","following_url":"https://api.github.com/users/bjeanes/following{/other_user}","gists_url":"https://api.github.com/users/bjeanes/gists{/gist_id}","starred_url":"https://api.github.com/users/bjeanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjeanes/subscriptions","organizations_url":"https://api.github.com/users/bjeanes/orgs","repos_url":"https://api.github.com/users/bjeanes/repos","events_url":"https://api.github.com/users/bjeanes/events{/privacy}","received_events_url":"https://api.github.com/users/bjeanes/received_events","type":"User","site_admin":false},"repo":{"id":42038206,"name":"heroku-buildkite-agent","full_name":"bjeanes/heroku-buildkite-agent","owner":{"login":"bjeanes","id":2560,"avatar_url":"https://avatars.githubusercontent.com/u/2560?v=3","gravatar_id":"","url":"https://api.github.com/users/bjeanes","html_url":"https://github.com/bjeanes","followers_url":"https://api.github.com/users/bjeanes/followers","following_url":"https://api.github.com/users/bjeanes/following{/other_user}","gists_url":"https://api.github.com/users/bjeanes/gists{/gist_id}","starred_url":"https://api.github.com/users/bjeanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjeanes/subscriptions","organizations_url":"https://api.github.com/users/bjeanes/orgs","repos_url":"https://api.github.com/users/bjeanes/repos","events_url":"https://api.github.com/users/bjeanes/events{/privacy}","received_events_url":"https://api.github.com/users/bjeanes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjeanes/heroku-buildkite-agent","description":"A sample Heroku app for running the Buildkite agent on Heroku dynos","fork":true,"url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent","forks_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/forks","keys_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/teams","hooks_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/hooks","issue_events_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/issues/events{/number}","events_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/events","assignees_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/assignees{/user}","branches_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/branches{/branch}","tags_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/tags","blobs_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/languages","stargazers_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/stargazers","contributors_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/contributors","subscribers_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/subscribers","subscription_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/subscription","commits_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/contents/{+path}","compare_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/merges","archive_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/downloads","issues_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/issues{/number}","pulls_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/labels{/name}","releases_url":"https://api.github.com/repos/bjeanes/heroku-buildkite-agent/releases{/id}","created_at":"2015-09-07T07:35:14Z","updated_at":"2015-09-07T07:35:14Z","pushed_at":"2015-09-07T14:11:34Z","git_url":"git://github.com/bjeanes/heroku-buildkite-agent.git","ssh_url":"git@github.com:bjeanes/heroku-buildkite-agent.git","clone_url":"https://github.com/bjeanes/heroku-buildkite-agent.git","svn_url":"https://github.com/bjeanes/heroku-buildkite-agent","homepage":null,"size":4444,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"buildkite:master","ref":"master","sha":"50f8b353d8e13bb3d817bc3480c0af7e1f024567","user":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"repo":{"id":31401148,"name":"heroku-buildkite-agent","full_name":"buildkite/heroku-buildkite-agent","owner":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/buildkite/heroku-buildkite-agent","description":"A sample Heroku app for running the Buildkite agent on Heroku dynos","fork":false,"url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent","forks_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/forks","keys_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/teams","hooks_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/hooks","issue_events_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/events{/number}","events_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/events","assignees_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/assignees{/user}","branches_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/branches{/branch}","tags_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/tags","blobs_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/languages","stargazers_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/stargazers","contributors_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/contributors","subscribers_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/subscribers","subscription_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/subscription","commits_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/contents/{+path}","compare_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/merges","archive_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/downloads","issues_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues{/number}","pulls_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/labels{/name}","releases_url":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/releases{/id}","created_at":"2015-02-27T03:09:27Z","updated_at":"2015-05-05T13:58:42Z","pushed_at":"2015-09-07T15:42:10Z","git_url":"git://github.com/buildkite/heroku-buildkite-agent.git","ssh_url":"git@github.com:buildkite/heroku-buildkite-agent.git","clone_url":"https://github.com/buildkite/heroku-buildkite-agent.git","svn_url":"https://github.com/buildkite/heroku-buildkite-agent","homepage":null,"size":4503,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1"},"html":{"href":"https://github.com/buildkite/heroku-buildkite-agent/pull/1"},"issue":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/1"},"comments":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/buildkite/heroku-buildkite-agent/statuses/9493560ee35c286d5938c5598d2bc0ce9467333b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"keithpitt","id":25882,"avatar_url":"https://avatars.githubusercontent.com/u/25882?v=3","gravatar_id":"","url":"https://api.github.com/users/keithpitt","html_url":"https://github.com/keithpitt","followers_url":"https://api.github.com/users/keithpitt/followers","following_url":"https://api.github.com/users/keithpitt/following{/other_user}","gists_url":"https://api.github.com/users/keithpitt/gists{/gist_id}","starred_url":"https://api.github.com/users/keithpitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithpitt/subscriptions","organizations_url":"https://api.github.com/users/keithpitt/orgs","repos_url":"https://api.github.com/users/keithpitt/repos","events_url":"https://api.github.com/users/keithpitt/events{/privacy}","received_events_url":"https://api.github.com/users/keithpitt/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":5,"additions":47,"deletions":1,"changed_files":3}}