{"action":"closed","number":929,"pull_request":{"url":"https://api.github.com/repos/errbotio/errbot/pulls/929","id":97919554,"html_url":"https://github.com/errbotio/errbot/pull/929","diff_url":"https://github.com/errbotio/errbot/pull/929.diff","patch_url":"https://github.com/errbotio/errbot/pull/929.patch","issue_url":"https://api.github.com/repos/errbotio/errbot/issues/929","number":929,"state":"closed","locked":false,"title":"Telegram Person ID comes as Int and should be a String","user":{"login":"pmoranga","id":92371,"avatar_url":"https://avatars.githubusercontent.com/u/92371?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoranga","html_url":"https://github.com/pmoranga","followers_url":"https://api.github.com/users/pmoranga/followers","following_url":"https://api.github.com/users/pmoranga/following{/other_user}","gists_url":"https://api.github.com/users/pmoranga/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoranga/subscriptions","organizations_url":"https://api.github.com/users/pmoranga/orgs","repos_url":"https://api.github.com/users/pmoranga/repos","events_url":"https://api.github.com/users/pmoranga/events{/privacy}","received_events_url":"https://api.github.com/users/pmoranga/received_events","type":"User","site_admin":false},"body":"Fix issue where ADMIN commands were not working once Person ID was a int and should be a string.\r\n\r\nError when issueing a admin command:\r\n`2016-12-13 22:26:11,980 INFO     errbot.plugins.ACLS       type of get_acl_usr(msg): <class 'int'>\r\n2016-12-13 22:26:11,982 ERROR    errbot.core               Exception in a filter command, blocking the command in doubt\r\nTraceback (most recent call last):\r\n  File \"/app/venv/lib/python3.4/site-packages/errbot/core.py\", line 344, in _process_command_filters\r\n    msg, cmd, args = cmd_filter(msg, cmd, args, dry_run)\r\n  File \"/app/venv/lib/python3.4/site-packages/errbot/core_plugins/acls.py\", line 104, in acls\r\n    if not glob(get_acl_usr(msg), self.bot_config.BOT_ADMINS):\r\n  File \"/app/venv/lib/python3.4/site-packages/errbot/core_plugins/acls.py\", line 23, in glob\r\n    return any(fnmatch.fnmatchcase(text, pattern) for pattern in patterns)\r\n  File \"/app/venv/lib/python3.4/site-packages/errbot/core_plugins/acls.py\", line 23, in <genexpr>\r\n    return any(fnmatch.fnmatchcase(text, pattern) for pattern in patterns)\r\n  File \"/app/venv/lib/python3.4/fnmatch.py\", line 71, in fnmatchcase\r\n    return match(name) is not None\r\nTypeError: expected string or buffer\r\n`","created_at":"2016-12-14T09:56:30Z","updated_at":"2016-12-16T17:11:07Z","closed_at":"2016-12-16T17:11:07Z","merged_at":"2016-12-16T17:11:07Z","merge_commit_sha":"f43dfba5dda6e0546f3979e879e33535d9f6316e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/errbotio/errbot/pulls/929/commits","review_comments_url":"https://api.github.com/repos/errbotio/errbot/pulls/929/comments","review_comment_url":"https://api.github.com/repos/errbotio/errbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/errbotio/errbot/issues/929/comments","statuses_url":"https://api.github.com/repos/errbotio/errbot/statuses/25a022000c64da356a93c6cf4c441644c89545d0","head":{"label":"pmoranga:patch-1","ref":"patch-1","sha":"25a022000c64da356a93c6cf4c441644c89545d0","user":{"login":"pmoranga","id":92371,"avatar_url":"https://avatars.githubusercontent.com/u/92371?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoranga","html_url":"https://github.com/pmoranga","followers_url":"https://api.github.com/users/pmoranga/followers","following_url":"https://api.github.com/users/pmoranga/following{/other_user}","gists_url":"https://api.github.com/users/pmoranga/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoranga/subscriptions","organizations_url":"https://api.github.com/users/pmoranga/orgs","repos_url":"https://api.github.com/users/pmoranga/repos","events_url":"https://api.github.com/users/pmoranga/events{/privacy}","received_events_url":"https://api.github.com/users/pmoranga/received_events","type":"User","site_admin":false},"repo":{"id":76446679,"name":"errbot","full_name":"pmoranga/errbot","owner":{"login":"pmoranga","id":92371,"avatar_url":"https://avatars.githubusercontent.com/u/92371?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoranga","html_url":"https://github.com/pmoranga","followers_url":"https://api.github.com/users/pmoranga/followers","following_url":"https://api.github.com/users/pmoranga/following{/other_user}","gists_url":"https://api.github.com/users/pmoranga/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoranga/subscriptions","organizations_url":"https://api.github.com/users/pmoranga/orgs","repos_url":"https://api.github.com/users/pmoranga/repos","events_url":"https://api.github.com/users/pmoranga/events{/privacy}","received_events_url":"https://api.github.com/users/pmoranga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pmoranga/errbot","description":"Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.","fork":true,"url":"https://api.github.com/repos/pmoranga/errbot","forks_url":"https://api.github.com/repos/pmoranga/errbot/forks","keys_url":"https://api.github.com/repos/pmoranga/errbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pmoranga/errbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pmoranga/errbot/teams","hooks_url":"https://api.github.com/repos/pmoranga/errbot/hooks","issue_events_url":"https://api.github.com/repos/pmoranga/errbot/issues/events{/number}","events_url":"https://api.github.com/repos/pmoranga/errbot/events","assignees_url":"https://api.github.com/repos/pmoranga/errbot/assignees{/user}","branches_url":"https://api.github.com/repos/pmoranga/errbot/branches{/branch}","tags_url":"https://api.github.com/repos/pmoranga/errbot/tags","blobs_url":"https://api.github.com/repos/pmoranga/errbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pmoranga/errbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pmoranga/errbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/pmoranga/errbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pmoranga/errbot/statuses/{sha}","languages_url":"https://api.github.com/repos/pmoranga/errbot/languages","stargazers_url":"https://api.github.com/repos/pmoranga/errbot/stargazers","contributors_url":"https://api.github.com/repos/pmoranga/errbot/contributors","subscribers_url":"https://api.github.com/repos/pmoranga/errbot/subscribers","subscription_url":"https://api.github.com/repos/pmoranga/errbot/subscription","commits_url":"https://api.github.com/repos/pmoranga/errbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/pmoranga/errbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/pmoranga/errbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/pmoranga/errbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/pmoranga/errbot/contents/{+path}","compare_url":"https://api.github.com/repos/pmoranga/errbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pmoranga/errbot/merges","archive_url":"https://api.github.com/repos/pmoranga/errbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pmoranga/errbot/downloads","issues_url":"https://api.github.com/repos/pmoranga/errbot/issues{/number}","pulls_url":"https://api.github.com/repos/pmoranga/errbot/pulls{/number}","milestones_url":"https://api.github.com/repos/pmoranga/errbot/milestones{/number}","notifications_url":"https://api.github.com/repos/pmoranga/errbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pmoranga/errbot/labels{/name}","releases_url":"https://api.github.com/repos/pmoranga/errbot/releases{/id}","deployments_url":"https://api.github.com/repos/pmoranga/errbot/deployments","created_at":"2016-12-14T09:52:14Z","updated_at":"2016-12-14T09:52:15Z","pushed_at":"2016-12-16T10:34:50Z","git_url":"git://github.com/pmoranga/errbot.git","ssh_url":"git@github.com:pmoranga/errbot.git","clone_url":"https://github.com/pmoranga/errbot.git","svn_url":"https://github.com/pmoranga/errbot","homepage":"http://errbot.io","size":4699,"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":"master"}},"base":{"label":"errbotio:master","ref":"master","sha":"439a8702763bd93906f9195a50d989054570e9be","user":{"login":"errbotio","id":15802630,"avatar_url":"https://avatars.githubusercontent.com/u/15802630?v=3","gravatar_id":"","url":"https://api.github.com/users/errbotio","html_url":"https://github.com/errbotio","followers_url":"https://api.github.com/users/errbotio/followers","following_url":"https://api.github.com/users/errbotio/following{/other_user}","gists_url":"https://api.github.com/users/errbotio/gists{/gist_id}","starred_url":"https://api.github.com/users/errbotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errbotio/subscriptions","organizations_url":"https://api.github.com/users/errbotio/orgs","repos_url":"https://api.github.com/users/errbotio/repos","events_url":"https://api.github.com/users/errbotio/events{/privacy}","received_events_url":"https://api.github.com/users/errbotio/received_events","type":"Organization","site_admin":false},"repo":{"id":4387547,"name":"errbot","full_name":"errbotio/errbot","owner":{"login":"errbotio","id":15802630,"avatar_url":"https://avatars.githubusercontent.com/u/15802630?v=3","gravatar_id":"","url":"https://api.github.com/users/errbotio","html_url":"https://github.com/errbotio","followers_url":"https://api.github.com/users/errbotio/followers","following_url":"https://api.github.com/users/errbotio/following{/other_user}","gists_url":"https://api.github.com/users/errbotio/gists{/gist_id}","starred_url":"https://api.github.com/users/errbotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errbotio/subscriptions","organizations_url":"https://api.github.com/users/errbotio/orgs","repos_url":"https://api.github.com/users/errbotio/repos","events_url":"https://api.github.com/users/errbotio/events{/privacy}","received_events_url":"https://api.github.com/users/errbotio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/errbotio/errbot","description":"Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.","fork":false,"url":"https://api.github.com/repos/errbotio/errbot","forks_url":"https://api.github.com/repos/errbotio/errbot/forks","keys_url":"https://api.github.com/repos/errbotio/errbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/errbotio/errbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/errbotio/errbot/teams","hooks_url":"https://api.github.com/repos/errbotio/errbot/hooks","issue_events_url":"https://api.github.com/repos/errbotio/errbot/issues/events{/number}","events_url":"https://api.github.com/repos/errbotio/errbot/events","assignees_url":"https://api.github.com/repos/errbotio/errbot/assignees{/user}","branches_url":"https://api.github.com/repos/errbotio/errbot/branches{/branch}","tags_url":"https://api.github.com/repos/errbotio/errbot/tags","blobs_url":"https://api.github.com/repos/errbotio/errbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/errbotio/errbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/errbotio/errbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/errbotio/errbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/errbotio/errbot/statuses/{sha}","languages_url":"https://api.github.com/repos/errbotio/errbot/languages","stargazers_url":"https://api.github.com/repos/errbotio/errbot/stargazers","contributors_url":"https://api.github.com/repos/errbotio/errbot/contributors","subscribers_url":"https://api.github.com/repos/errbotio/errbot/subscribers","subscription_url":"https://api.github.com/repos/errbotio/errbot/subscription","commits_url":"https://api.github.com/repos/errbotio/errbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/errbotio/errbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/errbotio/errbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/errbotio/errbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/errbotio/errbot/contents/{+path}","compare_url":"https://api.github.com/repos/errbotio/errbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/errbotio/errbot/merges","archive_url":"https://api.github.com/repos/errbotio/errbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/errbotio/errbot/downloads","issues_url":"https://api.github.com/repos/errbotio/errbot/issues{/number}","pulls_url":"https://api.github.com/repos/errbotio/errbot/pulls{/number}","milestones_url":"https://api.github.com/repos/errbotio/errbot/milestones{/number}","notifications_url":"https://api.github.com/repos/errbotio/errbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/errbotio/errbot/labels{/name}","releases_url":"https://api.github.com/repos/errbotio/errbot/releases{/id}","deployments_url":"https://api.github.com/repos/errbotio/errbot/deployments","created_at":"2012-05-20T21:13:41Z","updated_at":"2016-12-16T14:37:51Z","pushed_at":"2016-12-16T17:11:07Z","git_url":"git://github.com/errbotio/errbot.git","ssh_url":"git@github.com:errbotio/errbot.git","clone_url":"https://github.com/errbotio/errbot.git","svn_url":"https://github.com/errbotio/errbot","homepage":"http://errbot.io","size":6894,"stargazers_count":1082,"watchers_count":1082,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":243,"mirror_url":null,"open_issues_count":62,"forks":243,"open_issues":62,"watchers":1082,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/929"},"html":{"href":"https://github.com/errbotio/errbot/pull/929"},"issue":{"href":"https://api.github.com/repos/errbotio/errbot/issues/929"},"comments":{"href":"https://api.github.com/repos/errbotio/errbot/issues/929/comments"},"review_comments":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/929/comments"},"review_comment":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/929/commits"},"statuses":{"href":"https://api.github.com/repos/errbotio/errbot/statuses/25a022000c64da356a93c6cf4c441644c89545d0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zoni","id":145285,"avatar_url":"https://avatars.githubusercontent.com/u/145285?v=3","gravatar_id":"","url":"https://api.github.com/users/zoni","html_url":"https://github.com/zoni","followers_url":"https://api.github.com/users/zoni/followers","following_url":"https://api.github.com/users/zoni/following{/other_user}","gists_url":"https://api.github.com/users/zoni/gists{/gist_id}","starred_url":"https://api.github.com/users/zoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoni/subscriptions","organizations_url":"https://api.github.com/users/zoni/orgs","repos_url":"https://api.github.com/users/zoni/repos","events_url":"https://api.github.com/users/zoni/events{/privacy}","received_events_url":"https://api.github.com/users/zoni/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":2,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"zoni"}}