{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/comments/45242214","id":45242214,"diff_hunk":"@@ -78,16 +78,15 @@ exports.console = Object.freeze(jpmConsole);\n  *\n  * @return {Object}\n  */\n-function getManifest () {\n+function getManifest (addonDir) {","path":"lib/utils.js","position":5,"original_position":5,"commit_id":"ba1ee82af03ff9c4a48d12be30ae7e19d28996be","original_commit_id":"ba1ee82af03ff9c4a48d12be30ae7e19d28996be","user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"body":"Can you make this more like `getManifest ({addonDir: ...})` instead? Because [this other patch](https://github.com/mozilla-jetpack/jpm/pull/394/files#diff-50e3aa130a4f97a42ee2cf111c7b1d9dR87) needs to pass in a new option to `getManifest()` as well.","created_at":"2015-11-18T18:52:36Z","updated_at":"2015-11-18T18:52:36Z","html_url":"https://github.com/mozilla-jetpack/jpm/pull/399#discussion_r45242214","pull_request_url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399","_links":{"self":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/comments/45242214"},"html":{"href":"https://github.com/mozilla-jetpack/jpm/pull/399#discussion_r45242214"},"pull_request":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399","id":51110299,"html_url":"https://github.com/mozilla-jetpack/jpm/pull/399","diff_url":"https://github.com/mozilla-jetpack/jpm/pull/399.diff","patch_url":"https://github.com/mozilla-jetpack/jpm/pull/399.patch","issue_url":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/399","number":399,"state":"open","locked":false,"title":"Issue #332: Added option --addon-dir (defaults to the current work dir)","user":{"login":"jsnajdr","id":664258,"avatar_url":"https://avatars.githubusercontent.com/u/664258?v=3","gravatar_id":"","url":"https://api.github.com/users/jsnajdr","html_url":"https://github.com/jsnajdr","followers_url":"https://api.github.com/users/jsnajdr/followers","following_url":"https://api.github.com/users/jsnajdr/following{/other_user}","gists_url":"https://api.github.com/users/jsnajdr/gists{/gist_id}","starred_url":"https://api.github.com/users/jsnajdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsnajdr/subscriptions","organizations_url":"https://api.github.com/users/jsnajdr/orgs","repos_url":"https://api.github.com/users/jsnajdr/repos","events_url":"https://api.github.com/users/jsnajdr/events{/privacy}","received_events_url":"https://api.github.com/users/jsnajdr/received_events","type":"User","site_admin":false},"body":"This solves #332: adds a new option to set the sources directory and override the process.cwd. This is an updated and polished commit from abandoned pull request #272 ","created_at":"2015-11-18T16:52:28Z","updated_at":"2015-11-18T18:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4ecd97cc502fedc5cd7cef18a5d842696c1dac5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399/commits","review_comments_url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399/comments","review_comment_url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/399/comments","statuses_url":"https://api.github.com/repos/mozilla-jetpack/jpm/statuses/ba1ee82af03ff9c4a48d12be30ae7e19d28996be","head":{"label":"jsnajdr:master","ref":"master","sha":"ba1ee82af03ff9c4a48d12be30ae7e19d28996be","user":{"login":"jsnajdr","id":664258,"avatar_url":"https://avatars.githubusercontent.com/u/664258?v=3","gravatar_id":"","url":"https://api.github.com/users/jsnajdr","html_url":"https://github.com/jsnajdr","followers_url":"https://api.github.com/users/jsnajdr/followers","following_url":"https://api.github.com/users/jsnajdr/following{/other_user}","gists_url":"https://api.github.com/users/jsnajdr/gists{/gist_id}","starred_url":"https://api.github.com/users/jsnajdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsnajdr/subscriptions","organizations_url":"https://api.github.com/users/jsnajdr/orgs","repos_url":"https://api.github.com/users/jsnajdr/repos","events_url":"https://api.github.com/users/jsnajdr/events{/privacy}","received_events_url":"https://api.github.com/users/jsnajdr/received_events","type":"User","site_admin":false},"repo":{"id":46429027,"name":"jpm","full_name":"jsnajdr/jpm","owner":{"login":"jsnajdr","id":664258,"avatar_url":"https://avatars.githubusercontent.com/u/664258?v=3","gravatar_id":"","url":"https://api.github.com/users/jsnajdr","html_url":"https://github.com/jsnajdr","followers_url":"https://api.github.com/users/jsnajdr/followers","following_url":"https://api.github.com/users/jsnajdr/following{/other_user}","gists_url":"https://api.github.com/users/jsnajdr/gists{/gist_id}","starred_url":"https://api.github.com/users/jsnajdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsnajdr/subscriptions","organizations_url":"https://api.github.com/users/jsnajdr/orgs","repos_url":"https://api.github.com/users/jsnajdr/repos","events_url":"https://api.github.com/users/jsnajdr/events{/privacy}","received_events_url":"https://api.github.com/users/jsnajdr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsnajdr/jpm","description":"Jetpack Manager for Node.js","fork":true,"url":"https://api.github.com/repos/jsnajdr/jpm","forks_url":"https://api.github.com/repos/jsnajdr/jpm/forks","keys_url":"https://api.github.com/repos/jsnajdr/jpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsnajdr/jpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsnajdr/jpm/teams","hooks_url":"https://api.github.com/repos/jsnajdr/jpm/hooks","issue_events_url":"https://api.github.com/repos/jsnajdr/jpm/issues/events{/number}","events_url":"https://api.github.com/repos/jsnajdr/jpm/events","assignees_url":"https://api.github.com/repos/jsnajdr/jpm/assignees{/user}","branches_url":"https://api.github.com/repos/jsnajdr/jpm/branches{/branch}","tags_url":"https://api.github.com/repos/jsnajdr/jpm/tags","blobs_url":"https://api.github.com/repos/jsnajdr/jpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsnajdr/jpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsnajdr/jpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsnajdr/jpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsnajdr/jpm/statuses/{sha}","languages_url":"https://api.github.com/repos/jsnajdr/jpm/languages","stargazers_url":"https://api.github.com/repos/jsnajdr/jpm/stargazers","contributors_url":"https://api.github.com/repos/jsnajdr/jpm/contributors","subscribers_url":"https://api.github.com/repos/jsnajdr/jpm/subscribers","subscription_url":"https://api.github.com/repos/jsnajdr/jpm/subscription","commits_url":"https://api.github.com/repos/jsnajdr/jpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsnajdr/jpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsnajdr/jpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsnajdr/jpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsnajdr/jpm/contents/{+path}","compare_url":"https://api.github.com/repos/jsnajdr/jpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsnajdr/jpm/merges","archive_url":"https://api.github.com/repos/jsnajdr/jpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsnajdr/jpm/downloads","issues_url":"https://api.github.com/repos/jsnajdr/jpm/issues{/number}","pulls_url":"https://api.github.com/repos/jsnajdr/jpm/pulls{/number}","milestones_url":"https://api.github.com/repos/jsnajdr/jpm/milestones{/number}","notifications_url":"https://api.github.com/repos/jsnajdr/jpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsnajdr/jpm/labels{/name}","releases_url":"https://api.github.com/repos/jsnajdr/jpm/releases{/id}","created_at":"2015-11-18T15:47:33Z","updated_at":"2015-11-18T15:47:34Z","pushed_at":"2015-11-18T16:42:17Z","git_url":"git://github.com/jsnajdr/jpm.git","ssh_url":"git@github.com:jsnajdr/jpm.git","clone_url":"https://github.com/jsnajdr/jpm.git","svn_url":"https://github.com/jsnajdr/jpm","homepage":"https://www.npmjs.org/package/jpm","size":555,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mozilla-jetpack:master","ref":"master","sha":"221dfd8362245354e28bb7903d8abfd5ea72a0a4","user":{"login":"mozilla-jetpack","id":13967888,"avatar_url":"https://avatars.githubusercontent.com/u/13967888?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-jetpack","html_url":"https://github.com/mozilla-jetpack","followers_url":"https://api.github.com/users/mozilla-jetpack/followers","following_url":"https://api.github.com/users/mozilla-jetpack/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-jetpack/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-jetpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-jetpack/subscriptions","organizations_url":"https://api.github.com/users/mozilla-jetpack/orgs","repos_url":"https://api.github.com/users/mozilla-jetpack/repos","events_url":"https://api.github.com/users/mozilla-jetpack/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-jetpack/received_events","type":"Organization","site_admin":false},"repo":{"id":14935921,"name":"jpm","full_name":"mozilla-jetpack/jpm","owner":{"login":"mozilla-jetpack","id":13967888,"avatar_url":"https://avatars.githubusercontent.com/u/13967888?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-jetpack","html_url":"https://github.com/mozilla-jetpack","followers_url":"https://api.github.com/users/mozilla-jetpack/followers","following_url":"https://api.github.com/users/mozilla-jetpack/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-jetpack/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-jetpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-jetpack/subscriptions","organizations_url":"https://api.github.com/users/mozilla-jetpack/orgs","repos_url":"https://api.github.com/users/mozilla-jetpack/repos","events_url":"https://api.github.com/users/mozilla-jetpack/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-jetpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-jetpack/jpm","description":"Jetpack Manager for Node.js","fork":false,"url":"https://api.github.com/repos/mozilla-jetpack/jpm","forks_url":"https://api.github.com/repos/mozilla-jetpack/jpm/forks","keys_url":"https://api.github.com/repos/mozilla-jetpack/jpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-jetpack/jpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-jetpack/jpm/teams","hooks_url":"https://api.github.com/repos/mozilla-jetpack/jpm/hooks","issue_events_url":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-jetpack/jpm/events","assignees_url":"https://api.github.com/repos/mozilla-jetpack/jpm/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-jetpack/jpm/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-jetpack/jpm/tags","blobs_url":"https://api.github.com/repos/mozilla-jetpack/jpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-jetpack/jpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-jetpack/jpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-jetpack/jpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-jetpack/jpm/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-jetpack/jpm/languages","stargazers_url":"https://api.github.com/repos/mozilla-jetpack/jpm/stargazers","contributors_url":"https://api.github.com/repos/mozilla-jetpack/jpm/contributors","subscribers_url":"https://api.github.com/repos/mozilla-jetpack/jpm/subscribers","subscription_url":"https://api.github.com/repos/mozilla-jetpack/jpm/subscription","commits_url":"https://api.github.com/repos/mozilla-jetpack/jpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-jetpack/jpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-jetpack/jpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-jetpack/jpm/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-jetpack/jpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-jetpack/jpm/merges","archive_url":"https://api.github.com/repos/mozilla-jetpack/jpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-jetpack/jpm/downloads","issues_url":"https://api.github.com/repos/mozilla-jetpack/jpm/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-jetpack/jpm/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-jetpack/jpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-jetpack/jpm/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-jetpack/jpm/releases{/id}","created_at":"2013-12-04T21:09:56Z","updated_at":"2015-11-11T09:54:42Z","pushed_at":"2015-11-18T16:52:28Z","git_url":"git://github.com/mozilla-jetpack/jpm.git","ssh_url":"git@github.com:mozilla-jetpack/jpm.git","clone_url":"https://github.com/mozilla-jetpack/jpm.git","svn_url":"https://github.com/mozilla-jetpack/jpm","homepage":"https://www.npmjs.org/package/jpm","size":714,"stargazers_count":134,"watchers_count":134,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":109,"forks":53,"open_issues":109,"watchers":134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399"},"html":{"href":"https://github.com/mozilla-jetpack/jpm/pull/399"},"issue":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/399"},"comments":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/issues/399/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/pulls/399/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-jetpack/jpm/statuses/ba1ee82af03ff9c4a48d12be30ae7e19d28996be"}}}}