(self, options)
| 96 | """Github API""" |
| 97 | |
| 98 | def __init__(self, options): |
| 99 | self.headers = {} |
| 100 | if options.gituser: |
| 101 | gitpassword = getpass.getpass("github.com user " + options.gituser + ":") |
| 102 | authstr = base64.encodestring('%s:%s' % (options.gituser, gitpassword)).replace('\n', '') |
| 103 | self.headers["Authorization"] = "Basic " + authstr |
| 104 | |
| 105 | def pulls(self, user, repo, type="all"): |
| 106 | page = 1 |
nothing calls this directly
no outgoing calls
no test coverage detected