We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81d32b commit 0b139f3Copy full SHA for 0b139f3
1 file changed
ros_github_scripts/ci_for_pr.py
@@ -322,7 +322,9 @@ def parse_args():
322
def main():
323
github_access_token = os.environ.get('GITHUB_ACCESS_TOKEN')
324
if not github_access_token:
325
- panic('Environment variable GITHUB_ACCESS_TOKEN not set')
+ github_access_token = os.environ.get('GITHUB_TOKEN')
326
+ if not github_access_token:
327
+ panic('Neither environment variable GITHUB_ACCESS_TOKEN nor GITHUB_TOKEN are set')
328
github_instance = Github(github_access_token)
329
330
parsed = parse_args()
0 commit comments