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:
commit
476f4eb2cc
8
.github/scripts/build_assets/arg_getters.py
vendored
8
.github/scripts/build_assets/arg_getters.py
vendored
@ -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()
|
||||
|
||||
|
2
.github/scripts/icomoon_peek.py
vendored
2
.github/scripts/icomoon_peek.py
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user