{"action":"opened","number":432,"pull_request":{"url":"https://api.github.com/repos/sdelements/lets-chat/pulls/432","id":34732753,"html_url":"https://github.com/sdelements/lets-chat/pull/432","diff_url":"https://github.com/sdelements/lets-chat/pull/432.diff","patch_url":"https://github.com/sdelements/lets-chat/pull/432.patch","issue_url":"https://api.github.com/repos/sdelements/lets-chat/issues/432","number":432,"state":"open","locked":false,"title":"Add join channel on mention","user":{"login":"francisbrito","id":2180822,"avatar_url":"https://avatars.githubusercontent.com/u/2180822?v=3","gravatar_id":"","url":"https://api.github.com/users/francisbrito","html_url":"https://github.com/francisbrito","followers_url":"https://api.github.com/users/francisbrito/followers","following_url":"https://api.github.com/users/francisbrito/following{/other_user}","gists_url":"https://api.github.com/users/francisbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/francisbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisbrito/subscriptions","organizations_url":"https://api.github.com/users/francisbrito/orgs","repos_url":"https://api.github.com/users/francisbrito/repos","events_url":"https://api.github.com/users/francisbrito/events{/privacy}","received_events_url":"https://api.github.com/users/francisbrito/received_events","type":"User","site_admin":false},"body":"This is a basic implementation of #406\r\n\r\nCurrently it adds the user to the channel as soon as her username is typed into the chat box. I think it'd be nicer if she was added **after** the message that mentions her was sent, but this would require extra logic for handling adding multiple users. \r\n\r\nAnother possible improvement would be batching invites so that typing **@@garnet @@pearl @@amethyst and @@steven** would result in a single \"batch invite request\" instead of four, but maybe that is just a micro-optimization.","created_at":"2015-05-05T14:58:50Z","updated_at":"2015-05-05T14:58:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sdelements/lets-chat/pulls/432/commits","review_comments_url":"https://api.github.com/repos/sdelements/lets-chat/pulls/432/comments","review_comment_url":"https://api.github.com/repos/sdelements/lets-chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdelements/lets-chat/issues/432/comments","statuses_url":"https://api.github.com/repos/sdelements/lets-chat/statuses/9d8e76b753c75b89eda941cc6e15bd9c4542876f","head":{"label":"francisbrito:add-join-channel-on-mention","ref":"add-join-channel-on-mention","sha":"9d8e76b753c75b89eda941cc6e15bd9c4542876f","user":{"login":"francisbrito","id":2180822,"avatar_url":"https://avatars.githubusercontent.com/u/2180822?v=3","gravatar_id":"","url":"https://api.github.com/users/francisbrito","html_url":"https://github.com/francisbrito","followers_url":"https://api.github.com/users/francisbrito/followers","following_url":"https://api.github.com/users/francisbrito/following{/other_user}","gists_url":"https://api.github.com/users/francisbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/francisbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisbrito/subscriptions","organizations_url":"https://api.github.com/users/francisbrito/orgs","repos_url":"https://api.github.com/users/francisbrito/repos","events_url":"https://api.github.com/users/francisbrito/events{/privacy}","received_events_url":"https://api.github.com/users/francisbrito/received_events","type":"User","site_admin":false},"repo":{"id":34960684,"name":"lets-chat","full_name":"francisbrito/lets-chat","owner":{"login":"francisbrito","id":2180822,"avatar_url":"https://avatars.githubusercontent.com/u/2180822?v=3","gravatar_id":"","url":"https://api.github.com/users/francisbrito","html_url":"https://github.com/francisbrito","followers_url":"https://api.github.com/users/francisbrito/followers","following_url":"https://api.github.com/users/francisbrito/following{/other_user}","gists_url":"https://api.github.com/users/francisbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/francisbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisbrito/subscriptions","organizations_url":"https://api.github.com/users/francisbrito/orgs","repos_url":"https://api.github.com/users/francisbrito/repos","events_url":"https://api.github.com/users/francisbrito/events{/privacy}","received_events_url":"https://api.github.com/users/francisbrito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/francisbrito/lets-chat","description":"Self-hosted chat app for small teams","fork":true,"url":"https://api.github.com/repos/francisbrito/lets-chat","forks_url":"https://api.github.com/repos/francisbrito/lets-chat/forks","keys_url":"https://api.github.com/repos/francisbrito/lets-chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/francisbrito/lets-chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/francisbrito/lets-chat/teams","hooks_url":"https://api.github.com/repos/francisbrito/lets-chat/hooks","issue_events_url":"https://api.github.com/repos/francisbrito/lets-chat/issues/events{/number}","events_url":"https://api.github.com/repos/francisbrito/lets-chat/events","assignees_url":"https://api.github.com/repos/francisbrito/lets-chat/assignees{/user}","branches_url":"https://api.github.com/repos/francisbrito/lets-chat/branches{/branch}","tags_url":"https://api.github.com/repos/francisbrito/lets-chat/tags","blobs_url":"https://api.github.com/repos/francisbrito/lets-chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/francisbrito/lets-chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/francisbrito/lets-chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/francisbrito/lets-chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/francisbrito/lets-chat/statuses/{sha}","languages_url":"https://api.github.com/repos/francisbrito/lets-chat/languages","stargazers_url":"https://api.github.com/repos/francisbrito/lets-chat/stargazers","contributors_url":"https://api.github.com/repos/francisbrito/lets-chat/contributors","subscribers_url":"https://api.github.com/repos/francisbrito/lets-chat/subscribers","subscription_url":"https://api.github.com/repos/francisbrito/lets-chat/subscription","commits_url":"https://api.github.com/repos/francisbrito/lets-chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/francisbrito/lets-chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/francisbrito/lets-chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/francisbrito/lets-chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/francisbrito/lets-chat/contents/{+path}","compare_url":"https://api.github.com/repos/francisbrito/lets-chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/francisbrito/lets-chat/merges","archive_url":"https://api.github.com/repos/francisbrito/lets-chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/francisbrito/lets-chat/downloads","issues_url":"https://api.github.com/repos/francisbrito/lets-chat/issues{/number}","pulls_url":"https://api.github.com/repos/francisbrito/lets-chat/pulls{/number}","milestones_url":"https://api.github.com/repos/francisbrito/lets-chat/milestones{/number}","notifications_url":"https://api.github.com/repos/francisbrito/lets-chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/francisbrito/lets-chat/labels{/name}","releases_url":"https://api.github.com/repos/francisbrito/lets-chat/releases{/id}","created_at":"2015-05-02T19:32:12Z","updated_at":"2015-05-02T19:32:14Z","pushed_at":"2015-05-05T14:37:14Z","git_url":"git://github.com/francisbrito/lets-chat.git","ssh_url":"git@github.com:francisbrito/lets-chat.git","clone_url":"https://github.com/francisbrito/lets-chat.git","svn_url":"https://github.com/francisbrito/lets-chat","homepage":"http://sdelements.github.io/lets-chat","size":27448,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sdelements:master","ref":"master","sha":"71ad1afbb0df24be871695c3ddaa43af725eb1ea","user":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"repo":{"id":3673976,"name":"lets-chat","full_name":"sdelements/lets-chat","owner":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdelements/lets-chat","description":"Self-hosted chat app for small teams","fork":false,"url":"https://api.github.com/repos/sdelements/lets-chat","forks_url":"https://api.github.com/repos/sdelements/lets-chat/forks","keys_url":"https://api.github.com/repos/sdelements/lets-chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdelements/lets-chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdelements/lets-chat/teams","hooks_url":"https://api.github.com/repos/sdelements/lets-chat/hooks","issue_events_url":"https://api.github.com/repos/sdelements/lets-chat/issues/events{/number}","events_url":"https://api.github.com/repos/sdelements/lets-chat/events","assignees_url":"https://api.github.com/repos/sdelements/lets-chat/assignees{/user}","branches_url":"https://api.github.com/repos/sdelements/lets-chat/branches{/branch}","tags_url":"https://api.github.com/repos/sdelements/lets-chat/tags","blobs_url":"https://api.github.com/repos/sdelements/lets-chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdelements/lets-chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdelements/lets-chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdelements/lets-chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdelements/lets-chat/statuses/{sha}","languages_url":"https://api.github.com/repos/sdelements/lets-chat/languages","stargazers_url":"https://api.github.com/repos/sdelements/lets-chat/stargazers","contributors_url":"https://api.github.com/repos/sdelements/lets-chat/contributors","subscribers_url":"https://api.github.com/repos/sdelements/lets-chat/subscribers","subscription_url":"https://api.github.com/repos/sdelements/lets-chat/subscription","commits_url":"https://api.github.com/repos/sdelements/lets-chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdelements/lets-chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdelements/lets-chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdelements/lets-chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdelements/lets-chat/contents/{+path}","compare_url":"https://api.github.com/repos/sdelements/lets-chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdelements/lets-chat/merges","archive_url":"https://api.github.com/repos/sdelements/lets-chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdelements/lets-chat/downloads","issues_url":"https://api.github.com/repos/sdelements/lets-chat/issues{/number}","pulls_url":"https://api.github.com/repos/sdelements/lets-chat/pulls{/number}","milestones_url":"https://api.github.com/repos/sdelements/lets-chat/milestones{/number}","notifications_url":"https://api.github.com/repos/sdelements/lets-chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdelements/lets-chat/labels{/name}","releases_url":"https://api.github.com/repos/sdelements/lets-chat/releases{/id}","created_at":"2012-03-09T19:32:33Z","updated_at":"2015-05-05T14:41:24Z","pushed_at":"2015-05-02T03:25:59Z","git_url":"git://github.com/sdelements/lets-chat.git","ssh_url":"git@github.com:sdelements/lets-chat.git","clone_url":"https://github.com/sdelements/lets-chat.git","svn_url":"https://github.com/sdelements/lets-chat","homepage":"http://sdelements.github.io/lets-chat","size":27448,"stargazers_count":6357,"watchers_count":6357,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":736,"mirror_url":null,"open_issues_count":88,"forks":736,"open_issues":88,"watchers":6357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdelements/lets-chat/pulls/432"},"html":{"href":"https://github.com/sdelements/lets-chat/pull/432"},"issue":{"href":"https://api.github.com/repos/sdelements/lets-chat/issues/432"},"comments":{"href":"https://api.github.com/repos/sdelements/lets-chat/issues/432/comments"},"review_comments":{"href":"https://api.github.com/repos/sdelements/lets-chat/pulls/432/comments"},"review_comment":{"href":"https://api.github.com/repos/sdelements/lets-chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdelements/lets-chat/pulls/432/commits"},"statuses":{"href":"https://api.github.com/repos/sdelements/lets-chat/statuses/9d8e76b753c75b89eda941cc6e15bd9c4542876f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":31,"deletions":1,"changed_files":3}}