{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/Bidu/home_alone/pulls/5","id":70937023,"html_url":"https://github.com/Bidu/home_alone/pull/5","diff_url":"https://github.com/Bidu/home_alone/pull/5.diff","patch_url":"https://github.com/Bidu/home_alone/pull/5.patch","issue_url":"https://api.github.com/repos/Bidu/home_alone/issues/5","number":5,"state":"closed","locked":false,"title":"Adicionando listener do github","user":{"login":"renatomenegasso","id":810441,"avatar_url":"https://avatars.githubusercontent.com/u/810441?v=3","gravatar_id":"","url":"https://api.github.com/users/renatomenegasso","html_url":"https://github.com/renatomenegasso","followers_url":"https://api.github.com/users/renatomenegasso/followers","following_url":"https://api.github.com/users/renatomenegasso/following{/other_user}","gists_url":"https://api.github.com/users/renatomenegasso/gists{/gist_id}","starred_url":"https://api.github.com/users/renatomenegasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatomenegasso/subscriptions","organizations_url":"https://api.github.com/users/renatomenegasso/orgs","repos_url":"https://api.github.com/users/renatomenegasso/repos","events_url":"https://api.github.com/users/renatomenegasso/events{/privacy}","received_events_url":"https://api.github.com/users/renatomenegasso/received_events","type":"User","site_admin":false},"body":"Esse pull request implementa integrações com o slack para começar a criar um devbot, que envia mensagens para os desenvolvedores baseado em eventos do github:\r\n\r\n- [x] Mapeia usuarios do github para usuários do slack\r\n- [x] Recebe e parseia eventos do github via webhook\r\n- [x] Analisa o evento enviado, e verifica se tem mensagem cadastrada, envia para o desenvolvedor que fez o push\r\n- [x] Remove o `.sample` do github para que o mesmo funcione via variáveis de ambiente (para funcionar no heroku)\r\n- [ ] Testes unitários\r\n\r\nPossíveis melhorias que não vou fazer nesse pr:\r\n-  Fazer com que o bot responsa mensagens enviadas para ele\r\n- Tornar os eventos do github dinamicos, não deixa-los hardcoded","created_at":"2016-05-21T02:11:08Z","updated_at":"2016-05-31T00:52:14Z","closed_at":"2016-05-31T00:52:14Z","merged_at":"2016-05-31T00:52:14Z","merge_commit_sha":"ee9464d6c9b6ddda9b944c6b158dd2ce4bebb628","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Bidu/home_alone/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Bidu/home_alone/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Bidu/home_alone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bidu/home_alone/issues/5/comments","statuses_url":"https://api.github.com/repos/Bidu/home_alone/statuses/353715fb2667d70fb72111871002799c8bae37c7","head":{"label":"Bidu:rm-slack-integration","ref":"rm-slack-integration","sha":"353715fb2667d70fb72111871002799c8bae37c7","user":{"login":"Bidu","id":805484,"avatar_url":"https://avatars.githubusercontent.com/u/805484?v=3","gravatar_id":"","url":"https://api.github.com/users/Bidu","html_url":"https://github.com/Bidu","followers_url":"https://api.github.com/users/Bidu/followers","following_url":"https://api.github.com/users/Bidu/following{/other_user}","gists_url":"https://api.github.com/users/Bidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidu/subscriptions","organizations_url":"https://api.github.com/users/Bidu/orgs","repos_url":"https://api.github.com/users/Bidu/repos","events_url":"https://api.github.com/users/Bidu/events{/privacy}","received_events_url":"https://api.github.com/users/Bidu/received_events","type":"Organization","site_admin":false},"repo":{"id":53164411,"name":"home_alone","full_name":"Bidu/home_alone","owner":{"login":"Bidu","id":805484,"avatar_url":"https://avatars.githubusercontent.com/u/805484?v=3","gravatar_id":"","url":"https://api.github.com/users/Bidu","html_url":"https://github.com/Bidu","followers_url":"https://api.github.com/users/Bidu/followers","following_url":"https://api.github.com/users/Bidu/following{/other_user}","gists_url":"https://api.github.com/users/Bidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidu/subscriptions","organizations_url":"https://api.github.com/users/Bidu/orgs","repos_url":"https://api.github.com/users/Bidu/repos","events_url":"https://api.github.com/users/Bidu/events{/privacy}","received_events_url":"https://api.github.com/users/Bidu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bidu/home_alone","description":"","fork":false,"url":"https://api.github.com/repos/Bidu/home_alone","forks_url":"https://api.github.com/repos/Bidu/home_alone/forks","keys_url":"https://api.github.com/repos/Bidu/home_alone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bidu/home_alone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bidu/home_alone/teams","hooks_url":"https://api.github.com/repos/Bidu/home_alone/hooks","issue_events_url":"https://api.github.com/repos/Bidu/home_alone/issues/events{/number}","events_url":"https://api.github.com/repos/Bidu/home_alone/events","assignees_url":"https://api.github.com/repos/Bidu/home_alone/assignees{/user}","branches_url":"https://api.github.com/repos/Bidu/home_alone/branches{/branch}","tags_url":"https://api.github.com/repos/Bidu/home_alone/tags","blobs_url":"https://api.github.com/repos/Bidu/home_alone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bidu/home_alone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bidu/home_alone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bidu/home_alone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bidu/home_alone/statuses/{sha}","languages_url":"https://api.github.com/repos/Bidu/home_alone/languages","stargazers_url":"https://api.github.com/repos/Bidu/home_alone/stargazers","contributors_url":"https://api.github.com/repos/Bidu/home_alone/contributors","subscribers_url":"https://api.github.com/repos/Bidu/home_alone/subscribers","subscription_url":"https://api.github.com/repos/Bidu/home_alone/subscription","commits_url":"https://api.github.com/repos/Bidu/home_alone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bidu/home_alone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bidu/home_alone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bidu/home_alone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bidu/home_alone/contents/{+path}","compare_url":"https://api.github.com/repos/Bidu/home_alone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bidu/home_alone/merges","archive_url":"https://api.github.com/repos/Bidu/home_alone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bidu/home_alone/downloads","issues_url":"https://api.github.com/repos/Bidu/home_alone/issues{/number}","pulls_url":"https://api.github.com/repos/Bidu/home_alone/pulls{/number}","milestones_url":"https://api.github.com/repos/Bidu/home_alone/milestones{/number}","notifications_url":"https://api.github.com/repos/Bidu/home_alone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bidu/home_alone/labels{/name}","releases_url":"https://api.github.com/repos/Bidu/home_alone/releases{/id}","deployments_url":"https://api.github.com/repos/Bidu/home_alone/deployments","created_at":"2016-03-04T20:46:14Z","updated_at":"2016-03-04T20:46:44Z","pushed_at":"2016-05-31T00:52:14Z","git_url":"git://github.com/Bidu/home_alone.git","ssh_url":"git@github.com:Bidu/home_alone.git","clone_url":"https://github.com/Bidu/home_alone.git","svn_url":"https://github.com/Bidu/home_alone","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Bidu:master","ref":"master","sha":"ff799b346d150f69c16c262abfff35cdd0727d16","user":{"login":"Bidu","id":805484,"avatar_url":"https://avatars.githubusercontent.com/u/805484?v=3","gravatar_id":"","url":"https://api.github.com/users/Bidu","html_url":"https://github.com/Bidu","followers_url":"https://api.github.com/users/Bidu/followers","following_url":"https://api.github.com/users/Bidu/following{/other_user}","gists_url":"https://api.github.com/users/Bidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidu/subscriptions","organizations_url":"https://api.github.com/users/Bidu/orgs","repos_url":"https://api.github.com/users/Bidu/repos","events_url":"https://api.github.com/users/Bidu/events{/privacy}","received_events_url":"https://api.github.com/users/Bidu/received_events","type":"Organization","site_admin":false},"repo":{"id":53164411,"name":"home_alone","full_name":"Bidu/home_alone","owner":{"login":"Bidu","id":805484,"avatar_url":"https://avatars.githubusercontent.com/u/805484?v=3","gravatar_id":"","url":"https://api.github.com/users/Bidu","html_url":"https://github.com/Bidu","followers_url":"https://api.github.com/users/Bidu/followers","following_url":"https://api.github.com/users/Bidu/following{/other_user}","gists_url":"https://api.github.com/users/Bidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidu/subscriptions","organizations_url":"https://api.github.com/users/Bidu/orgs","repos_url":"https://api.github.com/users/Bidu/repos","events_url":"https://api.github.com/users/Bidu/events{/privacy}","received_events_url":"https://api.github.com/users/Bidu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bidu/home_alone","description":"","fork":false,"url":"https://api.github.com/repos/Bidu/home_alone","forks_url":"https://api.github.com/repos/Bidu/home_alone/forks","keys_url":"https://api.github.com/repos/Bidu/home_alone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bidu/home_alone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bidu/home_alone/teams","hooks_url":"https://api.github.com/repos/Bidu/home_alone/hooks","issue_events_url":"https://api.github.com/repos/Bidu/home_alone/issues/events{/number}","events_url":"https://api.github.com/repos/Bidu/home_alone/events","assignees_url":"https://api.github.com/repos/Bidu/home_alone/assignees{/user}","branches_url":"https://api.github.com/repos/Bidu/home_alone/branches{/branch}","tags_url":"https://api.github.com/repos/Bidu/home_alone/tags","blobs_url":"https://api.github.com/repos/Bidu/home_alone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bidu/home_alone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bidu/home_alone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bidu/home_alone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bidu/home_alone/statuses/{sha}","languages_url":"https://api.github.com/repos/Bidu/home_alone/languages","stargazers_url":"https://api.github.com/repos/Bidu/home_alone/stargazers","contributors_url":"https://api.github.com/repos/Bidu/home_alone/contributors","subscribers_url":"https://api.github.com/repos/Bidu/home_alone/subscribers","subscription_url":"https://api.github.com/repos/Bidu/home_alone/subscription","commits_url":"https://api.github.com/repos/Bidu/home_alone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bidu/home_alone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bidu/home_alone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bidu/home_alone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bidu/home_alone/contents/{+path}","compare_url":"https://api.github.com/repos/Bidu/home_alone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bidu/home_alone/merges","archive_url":"https://api.github.com/repos/Bidu/home_alone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bidu/home_alone/downloads","issues_url":"https://api.github.com/repos/Bidu/home_alone/issues{/number}","pulls_url":"https://api.github.com/repos/Bidu/home_alone/pulls{/number}","milestones_url":"https://api.github.com/repos/Bidu/home_alone/milestones{/number}","notifications_url":"https://api.github.com/repos/Bidu/home_alone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bidu/home_alone/labels{/name}","releases_url":"https://api.github.com/repos/Bidu/home_alone/releases{/id}","deployments_url":"https://api.github.com/repos/Bidu/home_alone/deployments","created_at":"2016-03-04T20:46:14Z","updated_at":"2016-03-04T20:46:44Z","pushed_at":"2016-05-31T00:52:14Z","git_url":"git://github.com/Bidu/home_alone.git","ssh_url":"git@github.com:Bidu/home_alone.git","clone_url":"https://github.com/Bidu/home_alone.git","svn_url":"https://github.com/Bidu/home_alone","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bidu/home_alone/pulls/5"},"html":{"href":"https://github.com/Bidu/home_alone/pull/5"},"issue":{"href":"https://api.github.com/repos/Bidu/home_alone/issues/5"},"comments":{"href":"https://api.github.com/repos/Bidu/home_alone/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Bidu/home_alone/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Bidu/home_alone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bidu/home_alone/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Bidu/home_alone/statuses/353715fb2667d70fb72111871002799c8bae37c7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"renatomenegasso","id":810441,"avatar_url":"https://avatars.githubusercontent.com/u/810441?v=3","gravatar_id":"","url":"https://api.github.com/users/renatomenegasso","html_url":"https://github.com/renatomenegasso","followers_url":"https://api.github.com/users/renatomenegasso/followers","following_url":"https://api.github.com/users/renatomenegasso/following{/other_user}","gists_url":"https://api.github.com/users/renatomenegasso/gists{/gist_id}","starred_url":"https://api.github.com/users/renatomenegasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatomenegasso/subscriptions","organizations_url":"https://api.github.com/users/renatomenegasso/orgs","repos_url":"https://api.github.com/users/renatomenegasso/repos","events_url":"https://api.github.com/users/renatomenegasso/events{/privacy}","received_events_url":"https://api.github.com/users/renatomenegasso/received_events","type":"User","site_admin":false},"comments":3,"review_comments":23,"commits":18,"additions":303,"deletions":47,"changed_files":24}}
{"actor":{"display_login":"renatomenegasso"}}