1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-01 12:20:18 +02:00

Peek bot won't check whether icon is in icomoon (#657)

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Thomas Bui
2021-05-30 14:08:45 -07:00
committed by GitHub
parent 192b31be11
commit 0fb272f38f

View File

@@ -14,10 +14,7 @@ def main():
runner = None runner = None
try: try:
args = arg_getters.get_selenium_runner_args(True) args = arg_getters.get_selenium_runner_args(True)
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path) new_icons = filehandler.get_json_file_content(args.devicon_json_path)
if len(new_icons) == 0:
raise Exception("No files need to be uploaded. Ending script...")
# 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
filtered_icon = find_object_added_in_this_pr(new_icons, args.pr_title) filtered_icon = find_object_added_in_this_pr(new_icons, args.pr_title)