Skip to content

Commit a917fb1

Browse files
authored
bin/check-test-version: look for API token in .github.api_token (exercism#1588)
1 parent 370d172 commit a917fb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/check-test-version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ def check_test_version(
297297
opts = parser.parse_args()
298298
verify_spec_location(opts.spec_path)
299299
if opts.create_issue:
300+
if opts.token is None:
301+
if os.path.isfile('.github.api_token'):
302+
with open('.github.api_token') as f:
303+
opts.token = f.read().strip()
300304
if opts.token is not None:
301305
gh = GitHub(api_token=opts.token)
302306
else:

0 commit comments

Comments
 (0)