contrib_bots: Expose some information about user profile

- Expose some information about user profile in `RestrictedClient`
class, like `full_name` and `email` of the user.

- Add `client` argument to `triage_message()`, now it's possible to
call bot with another method instead of calling the specified
keyword.
This commit is contained in:
Rafid Aslam
2016-12-15 14:38:39 +07:00
committed by showell
parent 13a1425bb7
commit 947fdf0b37
10 changed files with 20 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ class GitHubHandler(object):
'/<username>/<repository_owner>/<repository>/<issue_number>/<your_comment>'.
'''
def triage_message(self, message):
def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
original_content = message['content']