@@ -0,0 +1,1095 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0Aimport requests%0A%0A%0AISSUE_API = %22https://api.github.com/repos/%7Borg%7D/%7Brepo%7D/issues%22%0AREPO_API = %22https://api.github.com/orgs/%7Borg%7D/repos%22%0A%0A%0Adef test(data, bot):%0A    return 'issue' in data%5B'message'%5D%0A%0A%0Adef handler(data, bot, *args, **kwarg):%0A    org_name = kwarg%5B'org_name'%5D%0A    repos = requests.get(REPO_API.format(org=org_name)).json()%0A    rv = ''%0A    for repo in repos:%0A        repo_name = repo%5B'name'%5D%0A        issues_count = repo%5B'open_issues_count'%5D%0A        if issues_count != 0:%0A            issues = requests.get(ISSUE_API.format(org=org_name,%0A                                                   repo=repo_name)).json()%0A            rv += '*%7Brepo_name%7D%5Cn'.format(repo_name=repo_name)%0A            for idx, issue in enumerate(issues):%0A                rv += 'Bug %7B%7D:'.format(idx+1)%0A                rv += issue%5B'title'%5D.encode('utf-8') + '%5Cn'%0A                rv += issue%5B'url'%5D.encode('utf-8') + '%5Cn'%0A                rv += '%5Cn'%0A%0A    return rv if rv else 'no issue'%0A%0A%0Aif __name__ == '__main__':%0A    print handler(None, None, kv=None, org_name='python-cn')

add github issue plugin