1
0
mirror of https://github.com/konpa/devicon.git synced 2025-01-31 12:42:29 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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