mirror of https://github.com/zcash/developers.git
Take API tokens as environment variables
This commit is contained in:
parent
4690a7220a
commit
009996198b
|
@ -16,8 +16,8 @@ from sgqlc.endpoint.http import HTTPEndpoint
|
||||||
from sgqlc.operation import Operation
|
from sgqlc.operation import Operation
|
||||||
from github_schema import github_schema as schema
|
from github_schema import github_schema as schema
|
||||||
|
|
||||||
GITHUB_TOKEN = None
|
GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN')
|
||||||
ZENHUB_TOKEN = None
|
ZENHUB_TOKEN = os.environ.get('ZENHUB_TOKEN')
|
||||||
|
|
||||||
REPOS = {
|
REPOS = {
|
||||||
26987049: ('zcash', 'zcash'),
|
26987049: ('zcash', 'zcash'),
|
||||||
|
@ -220,4 +220,4 @@ if __name__ == '__main__':
|
||||||
if GITHUB_TOKEN and ZENHUB_TOKEN:
|
if GITHUB_TOKEN and ZENHUB_TOKEN:
|
||||||
main()
|
main()
|
||||||
else:
|
else:
|
||||||
print('Please edit the script to add GitHub and ZenHub API tokens.')
|
print('Please set the GITHUB_TOKEN and ZENHUB_TOKEN environment variables.')
|
||||||
|
|
Loading…
Reference in New Issue