1
0
mirror of https://github.com/konpa/devicon.git synced 2025-04-20 04:43:52 +02:00

Merge pull request #692 from devicons/thomas/argFix

Only build script will need token API
This commit is contained in:
Thomas Bui 2021-06-23 22:58:22 -07:00 committed by GitHub
commit 476f4eb2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -13,7 +13,7 @@ from build_assets import util
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