File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,21 +41,21 @@ def enable_auth(*args, **kwargs):
4141
4242
4343
44- def git_config ():
45- """Returns an authenticated Github object, via HTTP Basic.
44+ # def git_config():
45+ # """Returns an authenticated Github object, via HTTP Basic.
4646
47- GitHub API token is taken from `git config`.
48- """
47+ # GitHub API token is taken from `git config`.
48+ # """
4949
50- username = envoy .run ('git config github.user' ).std_out .strip ()
51- token = envoy .run ('git config github.token' ).std_out .strip ()
50+ # username = envoy.run('git config github.user').std_out.strip()
51+ # token = envoy.run('git config github.token').std_out.strip()
5252
53- def enable_auth (* args , ** kwargs ):
54- kwargs ['auth' ] = (username , token )
55- return args , kwargs
53+ # def enable_auth(*args, **kwargs):
54+ # kwargs['auth'] = (username, token)
55+ # return args, kwargs
5656
57- gh = Github ()
58- gh .is_authenticated = True
59- gh ._requests_pre_hook = enable_auth
57+ # gh = Github()
58+ # gh.is_authenticated = True
59+ # gh._requests_pre_hook = enable_auth
6060
61- return gh
61+ # return gh
You can’t perform that action at this time.
0 commit comments