{"action":"created","comment":{"url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/comments/55825030","id":55825030,"diff_hunk":"@@ -0,0 +1,143 @@\n+'use strict';\n+\n+const shell = require('shelljs'),\n+  request = require('request'),\n+  inquirer = require('inquirer'),\n+  q = require('q'),\n+  pathPrefix = '/raw/ng-lightning/ng-lightning/pull/';\n+\n+function requestConfigInfo() {\n+  var deferred = q.defer();\n+  inquirer.prompt([\n+    {\n+      type: 'input',\n+      name: 'prno',\n+      message: 'Which PR number would you like to merge?'\n+    },\n+    {\n+      type: 'list',\n+      name: 'append',\n+      message: `Append PR No. to comment message?`,\n+      choices: ['yes', 'no'],\n+      filter: answer => answer === 'yes',\n+      default: 1\n+    },\n+    {\n+      type: 'list',\n+      name: 'test',\n+      message: `Would you like to run the tests as well?`,\n+      choices: ['yes', 'no'],\n+      filter: answer => answer === 'yes',\n+      default: 0\n+    }\n+  ], function (answers) {\n+    deferred.resolve({\n+      prno: answers.prno,\n+      append: answers.append,\n+      test: answers.test\n+    });","path":"scripts/gh-pr-merge.js","position":38,"original_position":38,"commit_id":"e29ac5cbbc8c45a770c501912a52a9d747cc0e8f","original_commit_id":"e29ac5cbbc8c45a770c501912a52a9d747cc0e8f","user":{"login":"bekos","id":551595,"avatar_url":"https://avatars.githubusercontent.com/u/551595?v=3","gravatar_id":"","url":"https://api.github.com/users/bekos","html_url":"https://github.com/bekos","followers_url":"https://api.github.com/users/bekos/followers","following_url":"https://api.github.com/users/bekos/following{/other_user}","gists_url":"https://api.github.com/users/bekos/gists{/gist_id}","starred_url":"https://api.github.com/users/bekos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekos/subscriptions","organizations_url":"https://api.github.com/users/bekos/orgs","repos_url":"https://api.github.com/users/bekos/repos","events_url":"https://api.github.com/users/bekos/events{/privacy}","received_events_url":"https://api.github.com/users/bekos/received_events","type":"User","site_admin":false},"body":"You can just `deferred.resolve(answers);`.","created_at":"2016-03-11T12:47:17Z","updated_at":"2016-03-11T12:47:17Z","html_url":"https://github.com/ng-lightning/ng-lightning/pull/9#discussion_r55825030","pull_request_url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/comments/55825030"},"html":{"href":"https://github.com/ng-lightning/ng-lightning/pull/9#discussion_r55825030"},"pull_request":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9","id":62262778,"html_url":"https://github.com/ng-lightning/ng-lightning/pull/9","diff_url":"https://github.com/ng-lightning/ng-lightning/pull/9.diff","patch_url":"https://github.com/ng-lightning/ng-lightning/pull/9.patch","issue_url":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/9","number":9,"state":"open","locked":false,"title":"chore(merge): automate the PR merging process","user":{"login":"esarbanis","id":633903,"avatar_url":"https://avatars.githubusercontent.com/u/633903?v=3","gravatar_id":"","url":"https://api.github.com/users/esarbanis","html_url":"https://github.com/esarbanis","followers_url":"https://api.github.com/users/esarbanis/followers","following_url":"https://api.github.com/users/esarbanis/following{/other_user}","gists_url":"https://api.github.com/users/esarbanis/gists{/gist_id}","starred_url":"https://api.github.com/users/esarbanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esarbanis/subscriptions","organizations_url":"https://api.github.com/users/esarbanis/orgs","repos_url":"https://api.github.com/users/esarbanis/repos","events_url":"https://api.github.com/users/esarbanis/events{/privacy}","received_events_url":"https://api.github.com/users/esarbanis/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-09T17:12:37Z","updated_at":"2016-03-11T12:47:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e101e17b716117edc7058413e23d791f40f9e347","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/9/comments","statuses_url":"https://api.github.com/repos/ng-lightning/ng-lightning/statuses/e29ac5cbbc8c45a770c501912a52a9d747cc0e8f","head":{"label":"esarbanis:ghpr","ref":"ghpr","sha":"e29ac5cbbc8c45a770c501912a52a9d747cc0e8f","user":{"login":"esarbanis","id":633903,"avatar_url":"https://avatars.githubusercontent.com/u/633903?v=3","gravatar_id":"","url":"https://api.github.com/users/esarbanis","html_url":"https://github.com/esarbanis","followers_url":"https://api.github.com/users/esarbanis/followers","following_url":"https://api.github.com/users/esarbanis/following{/other_user}","gists_url":"https://api.github.com/users/esarbanis/gists{/gist_id}","starred_url":"https://api.github.com/users/esarbanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esarbanis/subscriptions","organizations_url":"https://api.github.com/users/esarbanis/orgs","repos_url":"https://api.github.com/users/esarbanis/repos","events_url":"https://api.github.com/users/esarbanis/events{/privacy}","received_events_url":"https://api.github.com/users/esarbanis/received_events","type":"User","site_admin":false},"repo":{"id":53065322,"name":"ng-lightning","full_name":"esarbanis/ng-lightning","owner":{"login":"esarbanis","id":633903,"avatar_url":"https://avatars.githubusercontent.com/u/633903?v=3","gravatar_id":"","url":"https://api.github.com/users/esarbanis","html_url":"https://github.com/esarbanis","followers_url":"https://api.github.com/users/esarbanis/followers","following_url":"https://api.github.com/users/esarbanis/following{/other_user}","gists_url":"https://api.github.com/users/esarbanis/gists{/gist_id}","starred_url":"https://api.github.com/users/esarbanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esarbanis/subscriptions","organizations_url":"https://api.github.com/users/esarbanis/orgs","repos_url":"https://api.github.com/users/esarbanis/repos","events_url":"https://api.github.com/users/esarbanis/events{/privacy}","received_events_url":"https://api.github.com/users/esarbanis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esarbanis/ng-lightning","description":"Native Angular 2 components & directives for Lightning Design System","fork":true,"url":"https://api.github.com/repos/esarbanis/ng-lightning","forks_url":"https://api.github.com/repos/esarbanis/ng-lightning/forks","keys_url":"https://api.github.com/repos/esarbanis/ng-lightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esarbanis/ng-lightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esarbanis/ng-lightning/teams","hooks_url":"https://api.github.com/repos/esarbanis/ng-lightning/hooks","issue_events_url":"https://api.github.com/repos/esarbanis/ng-lightning/issues/events{/number}","events_url":"https://api.github.com/repos/esarbanis/ng-lightning/events","assignees_url":"https://api.github.com/repos/esarbanis/ng-lightning/assignees{/user}","branches_url":"https://api.github.com/repos/esarbanis/ng-lightning/branches{/branch}","tags_url":"https://api.github.com/repos/esarbanis/ng-lightning/tags","blobs_url":"https://api.github.com/repos/esarbanis/ng-lightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esarbanis/ng-lightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esarbanis/ng-lightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/esarbanis/ng-lightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esarbanis/ng-lightning/statuses/{sha}","languages_url":"https://api.github.com/repos/esarbanis/ng-lightning/languages","stargazers_url":"https://api.github.com/repos/esarbanis/ng-lightning/stargazers","contributors_url":"https://api.github.com/repos/esarbanis/ng-lightning/contributors","subscribers_url":"https://api.github.com/repos/esarbanis/ng-lightning/subscribers","subscription_url":"https://api.github.com/repos/esarbanis/ng-lightning/subscription","commits_url":"https://api.github.com/repos/esarbanis/ng-lightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/esarbanis/ng-lightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/esarbanis/ng-lightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/esarbanis/ng-lightning/issues/comments{/number}","contents_url":"https://api.github.com/repos/esarbanis/ng-lightning/contents/{+path}","compare_url":"https://api.github.com/repos/esarbanis/ng-lightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esarbanis/ng-lightning/merges","archive_url":"https://api.github.com/repos/esarbanis/ng-lightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esarbanis/ng-lightning/downloads","issues_url":"https://api.github.com/repos/esarbanis/ng-lightning/issues{/number}","pulls_url":"https://api.github.com/repos/esarbanis/ng-lightning/pulls{/number}","milestones_url":"https://api.github.com/repos/esarbanis/ng-lightning/milestones{/number}","notifications_url":"https://api.github.com/repos/esarbanis/ng-lightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esarbanis/ng-lightning/labels{/name}","releases_url":"https://api.github.com/repos/esarbanis/ng-lightning/releases{/id}","deployments_url":"https://api.github.com/repos/esarbanis/ng-lightning/deployments","created_at":"2016-03-03T16:24:42Z","updated_at":"2016-03-04T18:44:28Z","pushed_at":"2016-03-10T20:24:26Z","git_url":"git://github.com/esarbanis/ng-lightning.git","ssh_url":"git@github.com:esarbanis/ng-lightning.git","clone_url":"https://github.com/esarbanis/ng-lightning.git","svn_url":"https://github.com/esarbanis/ng-lightning","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"ng-lightning:master","ref":"master","sha":"4f3adcdd6fbc5a2217980fb6247f439904a5100d","user":{"login":"ng-lightning","id":17249794,"avatar_url":"https://avatars.githubusercontent.com/u/17249794?v=3","gravatar_id":"","url":"https://api.github.com/users/ng-lightning","html_url":"https://github.com/ng-lightning","followers_url":"https://api.github.com/users/ng-lightning/followers","following_url":"https://api.github.com/users/ng-lightning/following{/other_user}","gists_url":"https://api.github.com/users/ng-lightning/gists{/gist_id}","starred_url":"https://api.github.com/users/ng-lightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ng-lightning/subscriptions","organizations_url":"https://api.github.com/users/ng-lightning/orgs","repos_url":"https://api.github.com/users/ng-lightning/repos","events_url":"https://api.github.com/users/ng-lightning/events{/privacy}","received_events_url":"https://api.github.com/users/ng-lightning/received_events","type":"Organization","site_admin":false},"repo":{"id":52876196,"name":"ng-lightning","full_name":"ng-lightning/ng-lightning","owner":{"login":"ng-lightning","id":17249794,"avatar_url":"https://avatars.githubusercontent.com/u/17249794?v=3","gravatar_id":"","url":"https://api.github.com/users/ng-lightning","html_url":"https://github.com/ng-lightning","followers_url":"https://api.github.com/users/ng-lightning/followers","following_url":"https://api.github.com/users/ng-lightning/following{/other_user}","gists_url":"https://api.github.com/users/ng-lightning/gists{/gist_id}","starred_url":"https://api.github.com/users/ng-lightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ng-lightning/subscriptions","organizations_url":"https://api.github.com/users/ng-lightning/orgs","repos_url":"https://api.github.com/users/ng-lightning/repos","events_url":"https://api.github.com/users/ng-lightning/events{/privacy}","received_events_url":"https://api.github.com/users/ng-lightning/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ng-lightning/ng-lightning","description":"Native Angular 2 components & directives for Lightning Design System","fork":false,"url":"https://api.github.com/repos/ng-lightning/ng-lightning","forks_url":"https://api.github.com/repos/ng-lightning/ng-lightning/forks","keys_url":"https://api.github.com/repos/ng-lightning/ng-lightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ng-lightning/ng-lightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ng-lightning/ng-lightning/teams","hooks_url":"https://api.github.com/repos/ng-lightning/ng-lightning/hooks","issue_events_url":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/events{/number}","events_url":"https://api.github.com/repos/ng-lightning/ng-lightning/events","assignees_url":"https://api.github.com/repos/ng-lightning/ng-lightning/assignees{/user}","branches_url":"https://api.github.com/repos/ng-lightning/ng-lightning/branches{/branch}","tags_url":"https://api.github.com/repos/ng-lightning/ng-lightning/tags","blobs_url":"https://api.github.com/repos/ng-lightning/ng-lightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ng-lightning/ng-lightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ng-lightning/ng-lightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/ng-lightning/ng-lightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ng-lightning/ng-lightning/statuses/{sha}","languages_url":"https://api.github.com/repos/ng-lightning/ng-lightning/languages","stargazers_url":"https://api.github.com/repos/ng-lightning/ng-lightning/stargazers","contributors_url":"https://api.github.com/repos/ng-lightning/ng-lightning/contributors","subscribers_url":"https://api.github.com/repos/ng-lightning/ng-lightning/subscribers","subscription_url":"https://api.github.com/repos/ng-lightning/ng-lightning/subscription","commits_url":"https://api.github.com/repos/ng-lightning/ng-lightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/ng-lightning/ng-lightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/ng-lightning/ng-lightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/comments{/number}","contents_url":"https://api.github.com/repos/ng-lightning/ng-lightning/contents/{+path}","compare_url":"https://api.github.com/repos/ng-lightning/ng-lightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ng-lightning/ng-lightning/merges","archive_url":"https://api.github.com/repos/ng-lightning/ng-lightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ng-lightning/ng-lightning/downloads","issues_url":"https://api.github.com/repos/ng-lightning/ng-lightning/issues{/number}","pulls_url":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls{/number}","milestones_url":"https://api.github.com/repos/ng-lightning/ng-lightning/milestones{/number}","notifications_url":"https://api.github.com/repos/ng-lightning/ng-lightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ng-lightning/ng-lightning/labels{/name}","releases_url":"https://api.github.com/repos/ng-lightning/ng-lightning/releases{/id}","deployments_url":"https://api.github.com/repos/ng-lightning/ng-lightning/deployments","created_at":"2016-03-01T12:46:58Z","updated_at":"2016-03-11T12:14:19Z","pushed_at":"2016-03-11T11:54:41Z","git_url":"git://github.com/ng-lightning/ng-lightning.git","ssh_url":"git@github.com:ng-lightning/ng-lightning.git","clone_url":"https://github.com/ng-lightning/ng-lightning.git","svn_url":"https://github.com/ng-lightning/ng-lightning","homepage":"http://ng-lightning.github.io/ng-lightning/","size":9666,"stargazers_count":12,"watchers_count":12,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9"},"html":{"href":"https://github.com/ng-lightning/ng-lightning/pull/9"},"issue":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/9"},"comments":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ng-lightning/ng-lightning/statuses/e29ac5cbbc8c45a770c501912a52a9d747cc0e8f"}}}}