{"action":"created","comment":{"url":"https://api.github.com/repos/ram535ii/bb/pulls/comments/41610673","id":41610673,"diff_hunk":"@@ -18,11 +21,24 @@\n #\n # Authors:\n #   ram535ii\n+#   Thanks to https://github.com/hubot-scripts/hubot-github-repo-event-notifier for inspiration\n+\n+room = process.env[\"HUBOT_GITHUB_EVENT_NOTIFIER_ROOM\"]\n+user = process.env[\"HUBOT_GITHUB_USERNAME\"]\n+action = \"assigned\"\n+\n+if !room?\n+  console.warn \"A room must be specific for posting to\"\n+\n+if !user?\n+  console.warn \"A user to check for pull request assignment must be specified\"","path":"scripts/gh-pr-assigned.coffee","position":26,"original_position":26,"commit_id":"fce5bb368a1fc7345d2a6518fd99297d85e337dc","original_commit_id":"fce5bb368a1fc7345d2a6518fd99297d85e337dc","user":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"body":"Good call","created_at":"2015-10-09T09:06:59Z","updated_at":"2015-10-09T09:06:59Z","html_url":"https://github.com/ram535ii/bb/pull/3#discussion_r41610673","pull_request_url":"https://api.github.com/repos/ram535ii/bb/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/comments/41610673"},"html":{"href":"https://github.com/ram535ii/bb/pull/3#discussion_r41610673"},"pull_request":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ram535ii/bb/pulls/3","id":46837932,"html_url":"https://github.com/ram535ii/bb/pull/3","diff_url":"https://github.com/ram535ii/bb/pull/3.diff","patch_url":"https://github.com/ram535ii/bb/pull/3.patch","issue_url":"https://api.github.com/repos/ram535ii/bb/issues/3","number":3,"state":"open","locked":false,"title":"Update script to allow others to use it","user":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"body":"Others can now use this script by setting an environment variables for\r\nthe room and github username to track with it comes to pull requests\r\n\r\nLimitation: Currently it can only handle a single github user and their\r\ncorresponding Slack channel, the next step is to extend this to multiple\r\nby comma separating in pairs","created_at":"2015-10-05T21:42:48Z","updated_at":"2015-10-09T09:06:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac7e71397ac919e4a539c324c59fef87c993ccd9","assignee":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ram535ii/bb/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ram535ii/bb/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ram535ii/bb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ram535ii/bb/issues/3/comments","statuses_url":"https://api.github.com/repos/ram535ii/bb/statuses/fce5bb368a1fc7345d2a6518fd99297d85e337dc","head":{"label":"ram535ii:generalize_gh_pr_assigned","ref":"generalize_gh_pr_assigned","sha":"fce5bb368a1fc7345d2a6518fd99297d85e337dc","user":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"repo":{"id":43090667,"name":"bb","full_name":"ram535ii/bb","owner":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ram535ii/bb","description":"Ruthless experimentation with Hubot, buddies in crime! ","fork":false,"url":"https://api.github.com/repos/ram535ii/bb","forks_url":"https://api.github.com/repos/ram535ii/bb/forks","keys_url":"https://api.github.com/repos/ram535ii/bb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ram535ii/bb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ram535ii/bb/teams","hooks_url":"https://api.github.com/repos/ram535ii/bb/hooks","issue_events_url":"https://api.github.com/repos/ram535ii/bb/issues/events{/number}","events_url":"https://api.github.com/repos/ram535ii/bb/events","assignees_url":"https://api.github.com/repos/ram535ii/bb/assignees{/user}","branches_url":"https://api.github.com/repos/ram535ii/bb/branches{/branch}","tags_url":"https://api.github.com/repos/ram535ii/bb/tags","blobs_url":"https://api.github.com/repos/ram535ii/bb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ram535ii/bb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ram535ii/bb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ram535ii/bb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ram535ii/bb/statuses/{sha}","languages_url":"https://api.github.com/repos/ram535ii/bb/languages","stargazers_url":"https://api.github.com/repos/ram535ii/bb/stargazers","contributors_url":"https://api.github.com/repos/ram535ii/bb/contributors","subscribers_url":"https://api.github.com/repos/ram535ii/bb/subscribers","subscription_url":"https://api.github.com/repos/ram535ii/bb/subscription","commits_url":"https://api.github.com/repos/ram535ii/bb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ram535ii/bb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ram535ii/bb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ram535ii/bb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ram535ii/bb/contents/{+path}","compare_url":"https://api.github.com/repos/ram535ii/bb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ram535ii/bb/merges","archive_url":"https://api.github.com/repos/ram535ii/bb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ram535ii/bb/downloads","issues_url":"https://api.github.com/repos/ram535ii/bb/issues{/number}","pulls_url":"https://api.github.com/repos/ram535ii/bb/pulls{/number}","milestones_url":"https://api.github.com/repos/ram535ii/bb/milestones{/number}","notifications_url":"https://api.github.com/repos/ram535ii/bb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ram535ii/bb/labels{/name}","releases_url":"https://api.github.com/repos/ram535ii/bb/releases{/id}","created_at":"2015-09-24T20:13:10Z","updated_at":"2015-09-24T20:13:29Z","pushed_at":"2015-10-05T21:42:49Z","git_url":"git://github.com/ram535ii/bb.git","ssh_url":"git@github.com:ram535ii/bb.git","clone_url":"https://github.com/ram535ii/bb.git","svn_url":"https://github.com/ram535ii/bb","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ram535ii:master","ref":"master","sha":"112bcf770f2e9e9dc2c63bdbd856123ce57587b1","user":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"repo":{"id":43090667,"name":"bb","full_name":"ram535ii/bb","owner":{"login":"ram535ii","id":2765843,"avatar_url":"https://avatars.githubusercontent.com/u/2765843?v=3","gravatar_id":"","url":"https://api.github.com/users/ram535ii","html_url":"https://github.com/ram535ii","followers_url":"https://api.github.com/users/ram535ii/followers","following_url":"https://api.github.com/users/ram535ii/following{/other_user}","gists_url":"https://api.github.com/users/ram535ii/gists{/gist_id}","starred_url":"https://api.github.com/users/ram535ii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ram535ii/subscriptions","organizations_url":"https://api.github.com/users/ram535ii/orgs","repos_url":"https://api.github.com/users/ram535ii/repos","events_url":"https://api.github.com/users/ram535ii/events{/privacy}","received_events_url":"https://api.github.com/users/ram535ii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ram535ii/bb","description":"Ruthless experimentation with Hubot, buddies in crime! ","fork":false,"url":"https://api.github.com/repos/ram535ii/bb","forks_url":"https://api.github.com/repos/ram535ii/bb/forks","keys_url":"https://api.github.com/repos/ram535ii/bb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ram535ii/bb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ram535ii/bb/teams","hooks_url":"https://api.github.com/repos/ram535ii/bb/hooks","issue_events_url":"https://api.github.com/repos/ram535ii/bb/issues/events{/number}","events_url":"https://api.github.com/repos/ram535ii/bb/events","assignees_url":"https://api.github.com/repos/ram535ii/bb/assignees{/user}","branches_url":"https://api.github.com/repos/ram535ii/bb/branches{/branch}","tags_url":"https://api.github.com/repos/ram535ii/bb/tags","blobs_url":"https://api.github.com/repos/ram535ii/bb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ram535ii/bb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ram535ii/bb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ram535ii/bb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ram535ii/bb/statuses/{sha}","languages_url":"https://api.github.com/repos/ram535ii/bb/languages","stargazers_url":"https://api.github.com/repos/ram535ii/bb/stargazers","contributors_url":"https://api.github.com/repos/ram535ii/bb/contributors","subscribers_url":"https://api.github.com/repos/ram535ii/bb/subscribers","subscription_url":"https://api.github.com/repos/ram535ii/bb/subscription","commits_url":"https://api.github.com/repos/ram535ii/bb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ram535ii/bb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ram535ii/bb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ram535ii/bb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ram535ii/bb/contents/{+path}","compare_url":"https://api.github.com/repos/ram535ii/bb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ram535ii/bb/merges","archive_url":"https://api.github.com/repos/ram535ii/bb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ram535ii/bb/downloads","issues_url":"https://api.github.com/repos/ram535ii/bb/issues{/number}","pulls_url":"https://api.github.com/repos/ram535ii/bb/pulls{/number}","milestones_url":"https://api.github.com/repos/ram535ii/bb/milestones{/number}","notifications_url":"https://api.github.com/repos/ram535ii/bb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ram535ii/bb/labels{/name}","releases_url":"https://api.github.com/repos/ram535ii/bb/releases{/id}","created_at":"2015-09-24T20:13:10Z","updated_at":"2015-09-24T20:13:29Z","pushed_at":"2015-10-05T21:42:49Z","git_url":"git://github.com/ram535ii/bb.git","ssh_url":"git@github.com:ram535ii/bb.git","clone_url":"https://github.com/ram535ii/bb.git","svn_url":"https://github.com/ram535ii/bb","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/3"},"html":{"href":"https://github.com/ram535ii/bb/pull/3"},"issue":{"href":"https://api.github.com/repos/ram535ii/bb/issues/3"},"comments":{"href":"https://api.github.com/repos/ram535ii/bb/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ram535ii/bb/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ram535ii/bb/statuses/fce5bb368a1fc7345d2a6518fd99297d85e337dc"}}}}