{"action":"closed","number":74,"pull_request":{"url":"https://api.github.com/repos/lins05/slackbot/pulls/74","id":66722258,"html_url":"https://github.com/lins05/slackbot/pull/74","diff_url":"https://github.com/lins05/slackbot/pull/74.diff","patch_url":"https://github.com/lins05/slackbot/pull/74.patch","issue_url":"https://api.github.com/repos/lins05/slackbot/issues/74","number":74,"state":"closed","locked":false,"title":"Update send_webapi() to send as_user by default","user":{"login":"jtatum","id":340001,"avatar_url":"https://avatars.githubusercontent.com/u/340001?v=3","gravatar_id":"","url":"https://api.github.com/users/jtatum","html_url":"https://github.com/jtatum","followers_url":"https://api.github.com/users/jtatum/followers","following_url":"https://api.github.com/users/jtatum/following{/other_user}","gists_url":"https://api.github.com/users/jtatum/gists{/gist_id}","starred_url":"https://api.github.com/users/jtatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtatum/subscriptions","organizations_url":"https://api.github.com/users/jtatum/orgs","repos_url":"https://api.github.com/users/jtatum/repos","events_url":"https://api.github.com/users/jtatum/events{/privacy}","received_events_url":"https://api.github.com/users/jtatum/received_events","type":"User","site_admin":false},"body":"Slackbot has an option to define an icon and emoji for web API sends. Each\r\nsend with the web API allows the caller to specify a different icon/emoji.\r\nThis strikes me as behavior that probably shouldn't be default. By using the\r\nas_user option, the send keeps the same icon/emoji as the bot integration and\r\nlooks identical to messages sent with .reply().\r\nTest results: https://travis-ci.org/jtatum/slackbot/builds/123487173\r\n![screen shot 2016-04-15 at 5 42 28 pm](https://cloud.githubusercontent.com/assets/340001/14578004/e3e91e7a-0331-11e6-81d6-9a2307d3d675.png)\r\n","created_at":"2016-04-16T00:46:38Z","updated_at":"2016-04-16T02:47:40Z","closed_at":"2016-04-16T02:47:40Z","merged_at":"2016-04-16T02:47:40Z","merge_commit_sha":"0b3c6e751d3e0f983ce538147c3be5d7159e321f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lins05/slackbot/pulls/74/commits","review_comments_url":"https://api.github.com/repos/lins05/slackbot/pulls/74/comments","review_comment_url":"https://api.github.com/repos/lins05/slackbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lins05/slackbot/issues/74/comments","statuses_url":"https://api.github.com/repos/lins05/slackbot/statuses/b66302943854a8e3274152e24365627525eeb28e","head":{"label":"jtatum:asuser","ref":"asuser","sha":"b66302943854a8e3274152e24365627525eeb28e","user":{"login":"jtatum","id":340001,"avatar_url":"https://avatars.githubusercontent.com/u/340001?v=3","gravatar_id":"","url":"https://api.github.com/users/jtatum","html_url":"https://github.com/jtatum","followers_url":"https://api.github.com/users/jtatum/followers","following_url":"https://api.github.com/users/jtatum/following{/other_user}","gists_url":"https://api.github.com/users/jtatum/gists{/gist_id}","starred_url":"https://api.github.com/users/jtatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtatum/subscriptions","organizations_url":"https://api.github.com/users/jtatum/orgs","repos_url":"https://api.github.com/users/jtatum/repos","events_url":"https://api.github.com/users/jtatum/events{/privacy}","received_events_url":"https://api.github.com/users/jtatum/received_events","type":"User","site_admin":false},"repo":{"id":55213686,"name":"slackbot","full_name":"jtatum/slackbot","owner":{"login":"jtatum","id":340001,"avatar_url":"https://avatars.githubusercontent.com/u/340001?v=3","gravatar_id":"","url":"https://api.github.com/users/jtatum","html_url":"https://github.com/jtatum","followers_url":"https://api.github.com/users/jtatum/followers","following_url":"https://api.github.com/users/jtatum/following{/other_user}","gists_url":"https://api.github.com/users/jtatum/gists{/gist_id}","starred_url":"https://api.github.com/users/jtatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtatum/subscriptions","organizations_url":"https://api.github.com/users/jtatum/orgs","repos_url":"https://api.github.com/users/jtatum/repos","events_url":"https://api.github.com/users/jtatum/events{/privacy}","received_events_url":"https://api.github.com/users/jtatum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jtatum/slackbot","description":"A chat bot for Slack (https://slack.com).","fork":true,"url":"https://api.github.com/repos/jtatum/slackbot","forks_url":"https://api.github.com/repos/jtatum/slackbot/forks","keys_url":"https://api.github.com/repos/jtatum/slackbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jtatum/slackbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jtatum/slackbot/teams","hooks_url":"https://api.github.com/repos/jtatum/slackbot/hooks","issue_events_url":"https://api.github.com/repos/jtatum/slackbot/issues/events{/number}","events_url":"https://api.github.com/repos/jtatum/slackbot/events","assignees_url":"https://api.github.com/repos/jtatum/slackbot/assignees{/user}","branches_url":"https://api.github.com/repos/jtatum/slackbot/branches{/branch}","tags_url":"https://api.github.com/repos/jtatum/slackbot/tags","blobs_url":"https://api.github.com/repos/jtatum/slackbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jtatum/slackbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jtatum/slackbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jtatum/slackbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jtatum/slackbot/statuses/{sha}","languages_url":"https://api.github.com/repos/jtatum/slackbot/languages","stargazers_url":"https://api.github.com/repos/jtatum/slackbot/stargazers","contributors_url":"https://api.github.com/repos/jtatum/slackbot/contributors","subscribers_url":"https://api.github.com/repos/jtatum/slackbot/subscribers","subscription_url":"https://api.github.com/repos/jtatum/slackbot/subscription","commits_url":"https://api.github.com/repos/jtatum/slackbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jtatum/slackbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jtatum/slackbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jtatum/slackbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jtatum/slackbot/contents/{+path}","compare_url":"https://api.github.com/repos/jtatum/slackbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jtatum/slackbot/merges","archive_url":"https://api.github.com/repos/jtatum/slackbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jtatum/slackbot/downloads","issues_url":"https://api.github.com/repos/jtatum/slackbot/issues{/number}","pulls_url":"https://api.github.com/repos/jtatum/slackbot/pulls{/number}","milestones_url":"https://api.github.com/repos/jtatum/slackbot/milestones{/number}","notifications_url":"https://api.github.com/repos/jtatum/slackbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jtatum/slackbot/labels{/name}","releases_url":"https://api.github.com/repos/jtatum/slackbot/releases{/id}","deployments_url":"https://api.github.com/repos/jtatum/slackbot/deployments","created_at":"2016-04-01T07:48:19Z","updated_at":"2016-04-01T07:48:22Z","pushed_at":"2016-04-16T02:00:54Z","git_url":"git://github.com/jtatum/slackbot.git","ssh_url":"git@github.com:jtatum/slackbot.git","clone_url":"https://github.com/jtatum/slackbot.git","svn_url":"https://github.com/jtatum/slackbot","homepage":null,"size":156,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"lins05:develop","ref":"develop","sha":"de4a4743e0b5b35036a60adb89499b825c9a427a","user":{"login":"lins05","id":717363,"avatar_url":"https://avatars.githubusercontent.com/u/717363?v=3","gravatar_id":"","url":"https://api.github.com/users/lins05","html_url":"https://github.com/lins05","followers_url":"https://api.github.com/users/lins05/followers","following_url":"https://api.github.com/users/lins05/following{/other_user}","gists_url":"https://api.github.com/users/lins05/gists{/gist_id}","starred_url":"https://api.github.com/users/lins05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lins05/subscriptions","organizations_url":"https://api.github.com/users/lins05/orgs","repos_url":"https://api.github.com/users/lins05/repos","events_url":"https://api.github.com/users/lins05/events{/privacy}","received_events_url":"https://api.github.com/users/lins05/received_events","type":"User","site_admin":false},"repo":{"id":31001580,"name":"slackbot","full_name":"lins05/slackbot","owner":{"login":"lins05","id":717363,"avatar_url":"https://avatars.githubusercontent.com/u/717363?v=3","gravatar_id":"","url":"https://api.github.com/users/lins05","html_url":"https://github.com/lins05","followers_url":"https://api.github.com/users/lins05/followers","following_url":"https://api.github.com/users/lins05/following{/other_user}","gists_url":"https://api.github.com/users/lins05/gists{/gist_id}","starred_url":"https://api.github.com/users/lins05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lins05/subscriptions","organizations_url":"https://api.github.com/users/lins05/orgs","repos_url":"https://api.github.com/users/lins05/repos","events_url":"https://api.github.com/users/lins05/events{/privacy}","received_events_url":"https://api.github.com/users/lins05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lins05/slackbot","description":"A chat bot for Slack (https://slack.com).","fork":false,"url":"https://api.github.com/repos/lins05/slackbot","forks_url":"https://api.github.com/repos/lins05/slackbot/forks","keys_url":"https://api.github.com/repos/lins05/slackbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lins05/slackbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lins05/slackbot/teams","hooks_url":"https://api.github.com/repos/lins05/slackbot/hooks","issue_events_url":"https://api.github.com/repos/lins05/slackbot/issues/events{/number}","events_url":"https://api.github.com/repos/lins05/slackbot/events","assignees_url":"https://api.github.com/repos/lins05/slackbot/assignees{/user}","branches_url":"https://api.github.com/repos/lins05/slackbot/branches{/branch}","tags_url":"https://api.github.com/repos/lins05/slackbot/tags","blobs_url":"https://api.github.com/repos/lins05/slackbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lins05/slackbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lins05/slackbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/lins05/slackbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lins05/slackbot/statuses/{sha}","languages_url":"https://api.github.com/repos/lins05/slackbot/languages","stargazers_url":"https://api.github.com/repos/lins05/slackbot/stargazers","contributors_url":"https://api.github.com/repos/lins05/slackbot/contributors","subscribers_url":"https://api.github.com/repos/lins05/slackbot/subscribers","subscription_url":"https://api.github.com/repos/lins05/slackbot/subscription","commits_url":"https://api.github.com/repos/lins05/slackbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/lins05/slackbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/lins05/slackbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/lins05/slackbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/lins05/slackbot/contents/{+path}","compare_url":"https://api.github.com/repos/lins05/slackbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lins05/slackbot/merges","archive_url":"https://api.github.com/repos/lins05/slackbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lins05/slackbot/downloads","issues_url":"https://api.github.com/repos/lins05/slackbot/issues{/number}","pulls_url":"https://api.github.com/repos/lins05/slackbot/pulls{/number}","milestones_url":"https://api.github.com/repos/lins05/slackbot/milestones{/number}","notifications_url":"https://api.github.com/repos/lins05/slackbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lins05/slackbot/labels{/name}","releases_url":"https://api.github.com/repos/lins05/slackbot/releases{/id}","deployments_url":"https://api.github.com/repos/lins05/slackbot/deployments","created_at":"2015-02-19T04:45:07Z","updated_at":"2016-04-16T00:10:54Z","pushed_at":"2016-04-16T02:47:40Z","git_url":"git://github.com/lins05/slackbot.git","ssh_url":"git@github.com:lins05/slackbot.git","clone_url":"https://github.com/lins05/slackbot.git","svn_url":"https://github.com/lins05/slackbot","homepage":null,"size":169,"stargazers_count":188,"watchers_count":188,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":20,"forks":90,"open_issues":20,"watchers":188,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/74"},"html":{"href":"https://github.com/lins05/slackbot/pull/74"},"issue":{"href":"https://api.github.com/repos/lins05/slackbot/issues/74"},"comments":{"href":"https://api.github.com/repos/lins05/slackbot/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/lins05/slackbot/statuses/b66302943854a8e3274152e24365627525eeb28e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lins05","id":717363,"avatar_url":"https://avatars.githubusercontent.com/u/717363?v=3","gravatar_id":"","url":"https://api.github.com/users/lins05","html_url":"https://github.com/lins05","followers_url":"https://api.github.com/users/lins05/followers","following_url":"https://api.github.com/users/lins05/following{/other_user}","gists_url":"https://api.github.com/users/lins05/gists{/gist_id}","starred_url":"https://api.github.com/users/lins05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lins05/subscriptions","organizations_url":"https://api.github.com/users/lins05/orgs","repos_url":"https://api.github.com/users/lins05/repos","events_url":"https://api.github.com/users/lins05/events{/privacy}","received_events_url":"https://api.github.com/users/lins05/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"commits":1,"additions":24,"deletions":10,"changed_files":4}}