{"action":"created","comment":{"url":"https://api.github.com/repos/heroku/cli/pulls/comments/213404672","pull_request_review_id":150234245,"id":213404672,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzQwNDY3Mg==","diff_hunk":"@@ -0,0 +1,42 @@\n+import {Command, flags as Flags} from '@heroku-cli/command'\n+\n+import {BuildpackCommand} from '../../buildpacks'\n+\n+export default class Add extends Command {\n+  static description: 'add new app buildpack, inserting into list of buildpacks if necessary'\n+  static flags = {\n+    app: Flags.app({required: true}),\n+    remote: Flags.remote(),\n+    index: Flags.integer({\n+      name: 'index',\n+      description: 'the 1-based index of the URL in the list of URLs',\n+      char: 'i'\n+    })\n+  }\n+  static args = [\n+    {name: 'buildpack', required: true}\n+  ]\n+\n+  async run() {\n+    let {args, flags} = this.parse(Add)\n+    let buildpackCommand = new BuildpackCommand(this.heroku)\n+\n+    if (flags.index !== undefined) {\n+      buildpackCommand.validateIndex(flags.index)\n+    }\n+\n+    let buildpacks = await buildpackCommand.fetch(flags.app)\n+    await buildpackCommand.validateUrlNotSet(buildpacks, args.buildpack)\n+\n+    let spliceIndex: number\n+    if (flags.index === undefined) {","path":"packages/buildpacks/src/commands/buildpacks/add.ts","position":32,"original_position":32,"commit_id":"f400df1273af60dbd322f2d2e9cbf85c24a0d30b","original_commit_id":"f400df1273af60dbd322f2d2e9cbf85c24a0d30b","user":{"login":"jdxcode","id":216188,"node_id":"MDQ6VXNlcjIxNjE4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/216188?v=4","gravatar_id":"","url":"https://api.github.com/users/jdxcode","html_url":"https://github.com/jdxcode","followers_url":"https://api.github.com/users/jdxcode/followers","following_url":"https://api.github.com/users/jdxcode/following{/other_user}","gists_url":"https://api.github.com/users/jdxcode/gists{/gist_id}","starred_url":"https://api.github.com/users/jdxcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdxcode/subscriptions","organizations_url":"https://api.github.com/users/jdxcode/orgs","repos_url":"https://api.github.com/users/jdxcode/repos","events_url":"https://api.github.com/users/jdxcode/events{/privacy}","received_events_url":"https://api.github.com/users/jdxcode/received_events","type":"User","site_admin":false},"body":"out of scope probably, but I would like it at some point if this used inquirer to prompt so you could select where you wanted to insert the buildpack visually","created_at":"2018-08-28T17:30:13Z","updated_at":"2018-08-28T17:30:13Z","html_url":"https://github.com/heroku/cli/pull/1000#discussion_r213404672","pull_request_url":"https://api.github.com/repos/heroku/cli/pulls/1000","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/heroku/cli/pulls/comments/213404672"},"html":{"href":"https://github.com/heroku/cli/pull/1000#discussion_r213404672"},"pull_request":{"href":"https://api.github.com/repos/heroku/cli/pulls/1000"}}},"pull_request":{"url":"https://api.github.com/repos/heroku/cli/pulls/1000","id":211334447,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMzM0NDQ3","html_url":"https://github.com/heroku/cli/pull/1000","diff_url":"https://github.com/heroku/cli/pull/1000.diff","patch_url":"https://github.com/heroku/cli/pull/1000.patch","issue_url":"https://api.github.com/repos/heroku/cli/issues/1000","number":1000,"state":"open","locked":false,"title":"Buildpacks + Buildpack Registry Core Commands","user":{"login":"hone","id":16457,"node_id":"MDQ6VXNlcjE2NDU3","avatar_url":"https://avatars2.githubusercontent.com/u/16457?v=4","gravatar_id":"","url":"https://api.github.com/users/hone","html_url":"https://github.com/hone","followers_url":"https://api.github.com/users/hone/followers","following_url":"https://api.github.com/users/hone/following{/other_user}","gists_url":"https://api.github.com/users/hone/gists{/gist_id}","starred_url":"https://api.github.com/users/hone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hone/subscriptions","organizations_url":"https://api.github.com/users/hone/orgs","repos_url":"https://api.github.com/users/hone/repos","events_url":"https://api.github.com/users/hone/events{/privacy}","received_events_url":"https://api.github.com/users/hone/received_events","type":"User","site_admin":false},"body":"This converts the v5 buildpack commands to oclif as well as adding the following commands from the buildpack registry:\r\n\r\n* info\r\n* search\r\n* versions\r\n\r\n/cc @jkutner ","created_at":"2018-08-28T08:02:49Z","updated_at":"2018-08-28T17:30:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc5462c8d27f7f98381c127aa91c0ed850ea79fa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/heroku/cli/pulls/1000/commits","review_comments_url":"https://api.github.com/repos/heroku/cli/pulls/1000/comments","review_comment_url":"https://api.github.com/repos/heroku/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/cli/issues/1000/comments","statuses_url":"https://api.github.com/repos/heroku/cli/statuses/f400df1273af60dbd322f2d2e9cbf85c24a0d30b","head":{"label":"heroku:buildpacks","ref":"buildpacks","sha":"f400df1273af60dbd322f2d2e9cbf85c24a0d30b","user":{"login":"heroku","id":23211,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjEx","avatar_url":"https://avatars3.githubusercontent.com/u/23211?v=4","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":28269754,"node_id":"MDEwOlJlcG9zaXRvcnkyODI2OTc1NA==","name":"cli","full_name":"heroku/cli","owner":{"login":"heroku","id":23211,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjEx","avatar_url":"https://avatars3.githubusercontent.com/u/23211?v=4","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/cli","description":"Heroku CLI","fork":false,"url":"https://api.github.com/repos/heroku/cli","forks_url":"https://api.github.com/repos/heroku/cli/forks","keys_url":"https://api.github.com/repos/heroku/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/cli/teams","hooks_url":"https://api.github.com/repos/heroku/cli/hooks","issue_events_url":"https://api.github.com/repos/heroku/cli/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/cli/events","assignees_url":"https://api.github.com/repos/heroku/cli/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/cli/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/cli/tags","blobs_url":"https://api.github.com/repos/heroku/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/cli/languages","stargazers_url":"https://api.github.com/repos/heroku/cli/stargazers","contributors_url":"https://api.github.com/repos/heroku/cli/contributors","subscribers_url":"https://api.github.com/repos/heroku/cli/subscribers","subscription_url":"https://api.github.com/repos/heroku/cli/subscription","commits_url":"https://api.github.com/repos/heroku/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/cli/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/cli/merges","archive_url":"https://api.github.com/repos/heroku/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/cli/downloads","issues_url":"https://api.github.com/repos/heroku/cli/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/cli/labels{/name}","releases_url":"https://api.github.com/repos/heroku/cli/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/cli/deployments","created_at":"2014-12-20T14:52:39Z","updated_at":"2018-08-28T03:23:21Z","pushed_at":"2018-08-28T16:49:20Z","git_url":"git://github.com/heroku/cli.git","ssh_url":"git@github.com:heroku/cli.git","clone_url":"https://github.com/heroku/cli.git","svn_url":"https://github.com/heroku/cli","homepage":"https://devcenter.heroku.com/articles/heroku-cli","size":13263,"stargazers_count":389,"watchers_count":389,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":91,"open_issues":48,"watchers":389,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"af9a1309bdef7bf5f3f5f3b3400b1043de6a08c4","user":{"login":"heroku","id":23211,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjEx","avatar_url":"https://avatars3.githubusercontent.com/u/23211?v=4","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":28269754,"node_id":"MDEwOlJlcG9zaXRvcnkyODI2OTc1NA==","name":"cli","full_name":"heroku/cli","owner":{"login":"heroku","id":23211,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjEx","avatar_url":"https://avatars3.githubusercontent.com/u/23211?v=4","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/cli","description":"Heroku CLI","fork":false,"url":"https://api.github.com/repos/heroku/cli","forks_url":"https://api.github.com/repos/heroku/cli/forks","keys_url":"https://api.github.com/repos/heroku/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/cli/teams","hooks_url":"https://api.github.com/repos/heroku/cli/hooks","issue_events_url":"https://api.github.com/repos/heroku/cli/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/cli/events","assignees_url":"https://api.github.com/repos/heroku/cli/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/cli/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/cli/tags","blobs_url":"https://api.github.com/repos/heroku/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/cli/languages","stargazers_url":"https://api.github.com/repos/heroku/cli/stargazers","contributors_url":"https://api.github.com/repos/heroku/cli/contributors","subscribers_url":"https://api.github.com/repos/heroku/cli/subscribers","subscription_url":"https://api.github.com/repos/heroku/cli/subscription","commits_url":"https://api.github.com/repos/heroku/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/cli/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/cli/merges","archive_url":"https://api.github.com/repos/heroku/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/cli/downloads","issues_url":"https://api.github.com/repos/heroku/cli/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/cli/labels{/name}","releases_url":"https://api.github.com/repos/heroku/cli/releases{/id}","deployments_url":"https://api.github.com/repos/heroku/cli/deployments","created_at":"2014-12-20T14:52:39Z","updated_at":"2018-08-28T03:23:21Z","pushed_at":"2018-08-28T16:49:20Z","git_url":"git://github.com/heroku/cli.git","ssh_url":"git@github.com:heroku/cli.git","clone_url":"https://github.com/heroku/cli.git","svn_url":"https://github.com/heroku/cli","homepage":"https://devcenter.heroku.com/articles/heroku-cli","size":13263,"stargazers_count":389,"watchers_count":389,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":91,"open_issues":48,"watchers":389,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/cli/pulls/1000"},"html":{"href":"https://github.com/heroku/cli/pull/1000"},"issue":{"href":"https://api.github.com/repos/heroku/cli/issues/1000"},"comments":{"href":"https://api.github.com/repos/heroku/cli/issues/1000/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/cli/pulls/1000/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/cli/pulls/1000/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/cli/statuses/f400df1273af60dbd322f2d2e9cbf85c24a0d30b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jdxcode"}}