{"action":"created","comment":{"url":"https://api.github.com/repos/amclin/aem-packager/pulls/comments/230460213","pull_request_review_id":171210862,"id":230460213,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDQ2MDIxMw==","diff_hunk":"@@ -0,0 +1,30 @@\n+const _ = require('lodash')\n+\n+/**\n+ * Renames properties on an object by prepending a prefix to them. Mutates the original object.\n+ * @param {Object} - Object to modify\n+ * @param {String} - prefix to append to the name of all the properties in the object\n+ * @returns {Object} - Updated object with renamed properties\n+ **/\n+const prefixProperties = function (obj, prefix) {\n+  _.forEach(obj, function (val, prop) {\n+    obj[prefix + prop] = val\n+    delete obj[prefix]\n+  })\n+\n+  return obj\n+}\n+\n+/**\n+ * Gets an NPM package.json property by name\n+ * This is shorthand for process.env.npm_package_<name>\n+ * @param {String} name\n+ * @param {String} prefix - Optionap prefix for finding an option in the namespace\n+ */\n+const getNPM = function (name, prefix) {\n+  prefix = prefix || ''\n+  return process.env[`npm_package_${prefix}${name}`]\n+}","path":"src/helpers.js","position":27,"original_position":27,"commit_id":"d8ab2461940e9c1340f0c4b455bc3792173146c7","original_commit_id":"da65d0af546e041ab06a2d44dd661609b7e17d5d","user":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"body":"updated hound config to follow npm standard","created_at":"2018-11-02T18:02:45Z","updated_at":"2018-11-02T18:02:45Z","html_url":"https://github.com/amclin/aem-packager/pull/22#discussion_r230460213","pull_request_url":"https://api.github.com/repos/amclin/aem-packager/pulls/22","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/comments/230460213"},"html":{"href":"https://github.com/amclin/aem-packager/pull/22#discussion_r230460213"},"pull_request":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/22"}},"in_reply_to_id":230454989},"pull_request":{"url":"https://api.github.com/repos/amclin/aem-packager/pulls/22","id":228011739,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MDExNzM5","html_url":"https://github.com/amclin/aem-packager/pull/22","diff_url":"https://github.com/amclin/aem-packager/pull/22.diff","patch_url":"https://github.com/amclin/aem-packager/pull/22.patch","issue_url":"https://api.github.com/repos/amclin/aem-packager/issues/22","number":22,"state":"open","locked":false,"title":"Bugfix/js linting","user":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"body":"Cleanup various linting issues reported by Codacy. Biggest change is using the process.env.npm_ variables instead of forcibly importing the package.json","created_at":"2018-11-02T17:44:07Z","updated_at":"2018-11-02T18:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f392ac06c465b4417656a9153ab2d49e10523f18","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amclin/aem-packager/pulls/22/commits","review_comments_url":"https://api.github.com/repos/amclin/aem-packager/pulls/22/comments","review_comment_url":"https://api.github.com/repos/amclin/aem-packager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amclin/aem-packager/issues/22/comments","statuses_url":"https://api.github.com/repos/amclin/aem-packager/statuses/d8ab2461940e9c1340f0c4b455bc3792173146c7","head":{"label":"amclin:bugfix/js-linting","ref":"bugfix/js-linting","sha":"d8ab2461940e9c1340f0c4b455bc3792173146c7","user":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"repo":{"id":155454269,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0NTQyNjk=","name":"aem-packager","full_name":"amclin/aem-packager","private":false,"owner":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/amclin/aem-packager","description":"A node plugin that creates AEM packages installable through the Adobe Experience Manager package manager.","fork":false,"url":"https://api.github.com/repos/amclin/aem-packager","forks_url":"https://api.github.com/repos/amclin/aem-packager/forks","keys_url":"https://api.github.com/repos/amclin/aem-packager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amclin/aem-packager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amclin/aem-packager/teams","hooks_url":"https://api.github.com/repos/amclin/aem-packager/hooks","issue_events_url":"https://api.github.com/repos/amclin/aem-packager/issues/events{/number}","events_url":"https://api.github.com/repos/amclin/aem-packager/events","assignees_url":"https://api.github.com/repos/amclin/aem-packager/assignees{/user}","branches_url":"https://api.github.com/repos/amclin/aem-packager/branches{/branch}","tags_url":"https://api.github.com/repos/amclin/aem-packager/tags","blobs_url":"https://api.github.com/repos/amclin/aem-packager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amclin/aem-packager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amclin/aem-packager/git/refs{/sha}","trees_url":"https://api.github.com/repos/amclin/aem-packager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amclin/aem-packager/statuses/{sha}","languages_url":"https://api.github.com/repos/amclin/aem-packager/languages","stargazers_url":"https://api.github.com/repos/amclin/aem-packager/stargazers","contributors_url":"https://api.github.com/repos/amclin/aem-packager/contributors","subscribers_url":"https://api.github.com/repos/amclin/aem-packager/subscribers","subscription_url":"https://api.github.com/repos/amclin/aem-packager/subscription","commits_url":"https://api.github.com/repos/amclin/aem-packager/commits{/sha}","git_commits_url":"https://api.github.com/repos/amclin/aem-packager/git/commits{/sha}","comments_url":"https://api.github.com/repos/amclin/aem-packager/comments{/number}","issue_comment_url":"https://api.github.com/repos/amclin/aem-packager/issues/comments{/number}","contents_url":"https://api.github.com/repos/amclin/aem-packager/contents/{+path}","compare_url":"https://api.github.com/repos/amclin/aem-packager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amclin/aem-packager/merges","archive_url":"https://api.github.com/repos/amclin/aem-packager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amclin/aem-packager/downloads","issues_url":"https://api.github.com/repos/amclin/aem-packager/issues{/number}","pulls_url":"https://api.github.com/repos/amclin/aem-packager/pulls{/number}","milestones_url":"https://api.github.com/repos/amclin/aem-packager/milestones{/number}","notifications_url":"https://api.github.com/repos/amclin/aem-packager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amclin/aem-packager/labels{/name}","releases_url":"https://api.github.com/repos/amclin/aem-packager/releases{/id}","deployments_url":"https://api.github.com/repos/amclin/aem-packager/deployments","created_at":"2018-10-30T20:48:29Z","updated_at":"2018-11-02T15:29:52Z","pushed_at":"2018-11-02T18:01:08Z","git_url":"git://github.com/amclin/aem-packager.git","ssh_url":"git@github.com:amclin/aem-packager.git","clone_url":"https://github.com/amclin/aem-packager.git","svn_url":"https://github.com/amclin/aem-packager","homepage":null,"size":157,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"amclin:develop","ref":"develop","sha":"826419a269c66474ea3d9e29ba950792a8f72ae9","user":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"repo":{"id":155454269,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0NTQyNjk=","name":"aem-packager","full_name":"amclin/aem-packager","private":false,"owner":{"login":"amclin","id":105728,"node_id":"MDQ6VXNlcjEwNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/105728?v=4","gravatar_id":"","url":"https://api.github.com/users/amclin","html_url":"https://github.com/amclin","followers_url":"https://api.github.com/users/amclin/followers","following_url":"https://api.github.com/users/amclin/following{/other_user}","gists_url":"https://api.github.com/users/amclin/gists{/gist_id}","starred_url":"https://api.github.com/users/amclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclin/subscriptions","organizations_url":"https://api.github.com/users/amclin/orgs","repos_url":"https://api.github.com/users/amclin/repos","events_url":"https://api.github.com/users/amclin/events{/privacy}","received_events_url":"https://api.github.com/users/amclin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/amclin/aem-packager","description":"A node plugin that creates AEM packages installable through the Adobe Experience Manager package manager.","fork":false,"url":"https://api.github.com/repos/amclin/aem-packager","forks_url":"https://api.github.com/repos/amclin/aem-packager/forks","keys_url":"https://api.github.com/repos/amclin/aem-packager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amclin/aem-packager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amclin/aem-packager/teams","hooks_url":"https://api.github.com/repos/amclin/aem-packager/hooks","issue_events_url":"https://api.github.com/repos/amclin/aem-packager/issues/events{/number}","events_url":"https://api.github.com/repos/amclin/aem-packager/events","assignees_url":"https://api.github.com/repos/amclin/aem-packager/assignees{/user}","branches_url":"https://api.github.com/repos/amclin/aem-packager/branches{/branch}","tags_url":"https://api.github.com/repos/amclin/aem-packager/tags","blobs_url":"https://api.github.com/repos/amclin/aem-packager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amclin/aem-packager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amclin/aem-packager/git/refs{/sha}","trees_url":"https://api.github.com/repos/amclin/aem-packager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amclin/aem-packager/statuses/{sha}","languages_url":"https://api.github.com/repos/amclin/aem-packager/languages","stargazers_url":"https://api.github.com/repos/amclin/aem-packager/stargazers","contributors_url":"https://api.github.com/repos/amclin/aem-packager/contributors","subscribers_url":"https://api.github.com/repos/amclin/aem-packager/subscribers","subscription_url":"https://api.github.com/repos/amclin/aem-packager/subscription","commits_url":"https://api.github.com/repos/amclin/aem-packager/commits{/sha}","git_commits_url":"https://api.github.com/repos/amclin/aem-packager/git/commits{/sha}","comments_url":"https://api.github.com/repos/amclin/aem-packager/comments{/number}","issue_comment_url":"https://api.github.com/repos/amclin/aem-packager/issues/comments{/number}","contents_url":"https://api.github.com/repos/amclin/aem-packager/contents/{+path}","compare_url":"https://api.github.com/repos/amclin/aem-packager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amclin/aem-packager/merges","archive_url":"https://api.github.com/repos/amclin/aem-packager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amclin/aem-packager/downloads","issues_url":"https://api.github.com/repos/amclin/aem-packager/issues{/number}","pulls_url":"https://api.github.com/repos/amclin/aem-packager/pulls{/number}","milestones_url":"https://api.github.com/repos/amclin/aem-packager/milestones{/number}","notifications_url":"https://api.github.com/repos/amclin/aem-packager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amclin/aem-packager/labels{/name}","releases_url":"https://api.github.com/repos/amclin/aem-packager/releases{/id}","deployments_url":"https://api.github.com/repos/amclin/aem-packager/deployments","created_at":"2018-10-30T20:48:29Z","updated_at":"2018-11-02T15:29:52Z","pushed_at":"2018-11-02T18:01:08Z","git_url":"git://github.com/amclin/aem-packager.git","ssh_url":"git@github.com:amclin/aem-packager.git","clone_url":"https://github.com/amclin/aem-packager.git","svn_url":"https://github.com/amclin/aem-packager","homepage":null,"size":157,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/22"},"html":{"href":"https://github.com/amclin/aem-packager/pull/22"},"issue":{"href":"https://api.github.com/repos/amclin/aem-packager/issues/22"},"comments":{"href":"https://api.github.com/repos/amclin/aem-packager/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amclin/aem-packager/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/amclin/aem-packager/statuses/d8ab2461940e9c1340f0c4b455bc3792173146c7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"amclin"}}