{"action":"closed","number":109,"pull_request":{"url":"https://api.github.com/repos/lins05/slackbot/pulls/109","id":84408345,"html_url":"https://github.com/lins05/slackbot/pull/109","diff_url":"https://github.com/lins05/slackbot/pull/109.diff","patch_url":"https://github.com/lins05/slackbot/pull/109.patch","issue_url":"https://api.github.com/repos/lins05/slackbot/issues/109","number":109,"state":"closed","locked":false,"title":"Support comparing channel by name or id","user":{"login":"limdauto","id":2032984,"avatar_url":"https://avatars.githubusercontent.com/u/2032984?v=3","gravatar_id":"","url":"https://api.github.com/users/limdauto","html_url":"https://github.com/limdauto","followers_url":"https://api.github.com/users/limdauto/followers","following_url":"https://api.github.com/users/limdauto/following{/other_user}","gists_url":"https://api.github.com/users/limdauto/gists{/gist_id}","starred_url":"https://api.github.com/users/limdauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limdauto/subscriptions","organizations_url":"https://api.github.com/users/limdauto/orgs","repos_url":"https://api.github.com/users/limdauto/repos","events_url":"https://api.github.com/users/limdauto/events{/privacy}","received_events_url":"https://api.github.com/users/limdauto/received_events","type":"User","site_admin":false},"body":"Thanks for the lovely library. I'm building a permission system for finer-grained access control to the bot, so inevitably, I stumbled upon the need to check whether some messages belong to certain channel. This PR is a direct port of the functionality in the official slackclient's channel object: https://github.com/slackhq/python-slackclient/blob/master/slackclient/_channel.py#L11-L15","created_at":"2016-09-08T03:17:38Z","updated_at":"2016-09-08T16:20:27Z","closed_at":"2016-09-08T16:20:27Z","merged_at":"2016-09-08T16:20:27Z","merge_commit_sha":"97fff3b3e5c12b20d8af9dcaeff774ff338f696d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lins05/slackbot/pulls/109/commits","review_comments_url":"https://api.github.com/repos/lins05/slackbot/pulls/109/comments","review_comment_url":"https://api.github.com/repos/lins05/slackbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lins05/slackbot/issues/109/comments","statuses_url":"https://api.github.com/repos/lins05/slackbot/statuses/99089d4e171bbf88e14448d57ccfa192de5f2b95","head":{"label":"limdauto:feature-lookup-message-channel-by-name","ref":"feature-lookup-message-channel-by-name","sha":"99089d4e171bbf88e14448d57ccfa192de5f2b95","user":{"login":"limdauto","id":2032984,"avatar_url":"https://avatars.githubusercontent.com/u/2032984?v=3","gravatar_id":"","url":"https://api.github.com/users/limdauto","html_url":"https://github.com/limdauto","followers_url":"https://api.github.com/users/limdauto/followers","following_url":"https://api.github.com/users/limdauto/following{/other_user}","gists_url":"https://api.github.com/users/limdauto/gists{/gist_id}","starred_url":"https://api.github.com/users/limdauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limdauto/subscriptions","organizations_url":"https://api.github.com/users/limdauto/orgs","repos_url":"https://api.github.com/users/limdauto/repos","events_url":"https://api.github.com/users/limdauto/events{/privacy}","received_events_url":"https://api.github.com/users/limdauto/received_events","type":"User","site_admin":false},"repo":{"id":67632309,"name":"slackbot","full_name":"limdauto/slackbot","owner":{"login":"limdauto","id":2032984,"avatar_url":"https://avatars.githubusercontent.com/u/2032984?v=3","gravatar_id":"","url":"https://api.github.com/users/limdauto","html_url":"https://github.com/limdauto","followers_url":"https://api.github.com/users/limdauto/followers","following_url":"https://api.github.com/users/limdauto/following{/other_user}","gists_url":"https://api.github.com/users/limdauto/gists{/gist_id}","starred_url":"https://api.github.com/users/limdauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limdauto/subscriptions","organizations_url":"https://api.github.com/users/limdauto/orgs","repos_url":"https://api.github.com/users/limdauto/repos","events_url":"https://api.github.com/users/limdauto/events{/privacy}","received_events_url":"https://api.github.com/users/limdauto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/limdauto/slackbot","description":"A chat bot for Slack (https://slack.com).","fork":true,"url":"https://api.github.com/repos/limdauto/slackbot","forks_url":"https://api.github.com/repos/limdauto/slackbot/forks","keys_url":"https://api.github.com/repos/limdauto/slackbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/limdauto/slackbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/limdauto/slackbot/teams","hooks_url":"https://api.github.com/repos/limdauto/slackbot/hooks","issue_events_url":"https://api.github.com/repos/limdauto/slackbot/issues/events{/number}","events_url":"https://api.github.com/repos/limdauto/slackbot/events","assignees_url":"https://api.github.com/repos/limdauto/slackbot/assignees{/user}","branches_url":"https://api.github.com/repos/limdauto/slackbot/branches{/branch}","tags_url":"https://api.github.com/repos/limdauto/slackbot/tags","blobs_url":"https://api.github.com/repos/limdauto/slackbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/limdauto/slackbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/limdauto/slackbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/limdauto/slackbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/limdauto/slackbot/statuses/{sha}","languages_url":"https://api.github.com/repos/limdauto/slackbot/languages","stargazers_url":"https://api.github.com/repos/limdauto/slackbot/stargazers","contributors_url":"https://api.github.com/repos/limdauto/slackbot/contributors","subscribers_url":"https://api.github.com/repos/limdauto/slackbot/subscribers","subscription_url":"https://api.github.com/repos/limdauto/slackbot/subscription","commits_url":"https://api.github.com/repos/limdauto/slackbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/limdauto/slackbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/limdauto/slackbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/limdauto/slackbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/limdauto/slackbot/contents/{+path}","compare_url":"https://api.github.com/repos/limdauto/slackbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/limdauto/slackbot/merges","archive_url":"https://api.github.com/repos/limdauto/slackbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/limdauto/slackbot/downloads","issues_url":"https://api.github.com/repos/limdauto/slackbot/issues{/number}","pulls_url":"https://api.github.com/repos/limdauto/slackbot/pulls{/number}","milestones_url":"https://api.github.com/repos/limdauto/slackbot/milestones{/number}","notifications_url":"https://api.github.com/repos/limdauto/slackbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/limdauto/slackbot/labels{/name}","releases_url":"https://api.github.com/repos/limdauto/slackbot/releases{/id}","deployments_url":"https://api.github.com/repos/limdauto/slackbot/deployments","created_at":"2016-09-07T18:19:09Z","updated_at":"2016-09-07T18:19:11Z","pushed_at":"2016-09-08T03:15:07Z","git_url":"git://github.com/limdauto/slackbot.git","ssh_url":"git@github.com:limdauto/slackbot.git","clone_url":"https://github.com/limdauto/slackbot.git","svn_url":"https://github.com/limdauto/slackbot","homepage":null,"size":182,"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":"6fe9e63dac3892d3d35071216bb68509a05a81dd","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-09-07T18:14:30Z","pushed_at":"2016-09-08T16:20:28Z","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":295,"stargazers_count":336,"watchers_count":336,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":140,"mirror_url":null,"open_issues_count":31,"forks":140,"open_issues":31,"watchers":336,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/109"},"html":{"href":"https://github.com/lins05/slackbot/pull/109"},"issue":{"href":"https://api.github.com/repos/lins05/slackbot/issues/109"},"comments":{"href":"https://api.github.com/repos/lins05/slackbot/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lins05/slackbot/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/lins05/slackbot/statuses/99089d4e171bbf88e14448d57ccfa192de5f2b95"}},"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":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"lins05"}}