Skip to content

Commit

Permalink
bin/check-test-version: look for API token in .github.api_token (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccandless authored Nov 13, 2018
1 parent 370d172 commit a917fb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/check-test-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ def check_test_version(
opts = parser.parse_args()
verify_spec_location(opts.spec_path)
if opts.create_issue:
if opts.token is None:
if os.path.isfile('.github.api_token'):
with open('.github.api_token') as f:
opts.token = f.read().strip()
if opts.token is not None:
gh = GitHub(api_token=opts.token)
else:
Expand Down

0 comments on commit a917fb1

Please sign in to comment.