mirror of
https://github.com/konpa/devicon.git
synced 2025-08-06 14:46:46 +02:00
Merge pull request #692 from devicons/thomas/argFix
Only build script will need token API
This commit is contained in:
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",
|
help="The download destination of the Icomoon files",
|
||||||
action=PathResolverAction)
|
action=PathResolverAction)
|
||||||
|
|
||||||
parser.add_argument("token",
|
|
||||||
help="The GitHub token to access the GitHub REST API.",
|
|
||||||
type=str)
|
|
||||||
|
|
||||||
if peek_mode:
|
if peek_mode:
|
||||||
parser.add_argument("--pr_title",
|
parser.add_argument("--pr_title",
|
||||||
help="The title of the PR that we are peeking at")
|
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()
|
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():
|
def main():
|
||||||
runner = None
|
runner = None
|
||||||
try:
|
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)
|
new_icons = filehandler.get_json_file_content(args.devicon_json_path)
|
||||||
|
|
||||||
# get only the icon object that has the name matching the pr title
|
# get only the icon object that has the name matching the pr title
|
||||||
|
Reference in New Issue
Block a user