From 62d022b074975d0f0e03d5d3187b613b85956783 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 23 Jun 2021 16:57:23 -0700 Subject: [PATCH] Only build script will need token API --- .github/scripts/build_assets/arg_getters.py | 8 ++++---- .github/scripts/icomoon_peek.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/build_assets/arg_getters.py b/.github/scripts/build_assets/arg_getters.py index 4179d89d2..80b88d3c2 100644 --- a/.github/scripts/build_assets/arg_getters.py +++ b/.github/scripts/build_assets/arg_getters.py @@ -33,13 +33,13 @@ def get_selenium_runner_args(peek_mode=False): help="The download destination of the Icomoon files", action=PathResolverAction) - parser.add_argument("token", - help="The GitHub token to access the GitHub REST API.", - type=str) - if peek_mode: parser.add_argument("--pr_title", help="The title of the PR that we are peeking at") + else: + parser.add_argument("token", + help="The GitHub token to access the GitHub REST API.", + type=str) return parser.parse_args() diff --git a/.github/scripts/icomoon_peek.py b/.github/scripts/icomoon_peek.py index 1d132c218..ae81eb4b1 100644 --- a/.github/scripts/icomoon_peek.py +++ b/.github/scripts/icomoon_peek.py @@ -13,7 +13,7 @@ def main(): runner = None try: - args = arg_getters.get_selenium_runner_args(True) + args = arg_getters.get_selenium_runner_args(peek_mode=True) new_icons = filehandler.get_json_file_content(args.devicon_json_path) # get only the icon object that has the name matching the pr title