mirror of
https://github.com/konpa/devicon.git
synced 2025-08-24 07:03:00 +02:00
Feature: Peek and Build-Bot Upgrade (#806)
* Refactored peek script into a class * Post-peek workflow now upload the new screenshots * Refactored BuildSeleniumRunner into a class * Updated build_icons.yml to reflect new changes * Fixed issue with building icons that were already in the app * Build script will take screenshot of new icons * Update post peek yaml message * Added alerts * Peek script now check for strokes in icons * Updated post_peek's strokes in svgs message * Updated post_peek script's message * Updated post_peek's message * Refactored get_release_message into icomoon_build * Change devicon.css name to devicon-base.css * Updated post_peek message * Added update icon as a valid PR title for bot-peek * Add \n char to SVG after it gets optimized * Fixed error with 'update icon' regex * Build script now batch issues when upload SVG * Addressed build-bot's screenshot order * Apply suggestions from code review Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
6
.github/scripts/build_assets/filehandler.py
vendored
6
.github/scripts/build_assets/filehandler.py
vendored
@@ -91,7 +91,7 @@ def get_icon_svgs_paths(folder_path: Path, icon_info: dict,
|
||||
for font_version in icon_info["versions"]["font"]:
|
||||
# if it's an alias, we don't want to make it into an icon
|
||||
if is_alias(font_version, aliases):
|
||||
print(f"Skipping this font since it's an alias: {icon_info['name']}-{font_version}.svg")
|
||||
print(f"Finding SVG filepaths: skipping this font since it's an alias: {icon_info['name']}-{font_version}.svg")
|
||||
continue
|
||||
|
||||
file_name = f"{icon_info['name']}-{font_version}.svg"
|
||||
@@ -177,7 +177,7 @@ def rename_extracted_files(extract_path: str):
|
||||
},
|
||||
{
|
||||
"old": Path(extract_path, "style.css"),
|
||||
"new": Path(extract_path, "devicon.css")
|
||||
"new": Path(extract_path, "devicon-base.css")
|
||||
}
|
||||
]
|
||||
|
||||
@@ -203,7 +203,7 @@ def create_screenshot_folder(dir, screenshot_name: str="screenshots/"):
|
||||
try:
|
||||
os.mkdir(screenshot_folder)
|
||||
except FileExistsError:
|
||||
print(f"{screenshot_folder} already exist. Script will do nothing.")
|
||||
print(f"{screenshot_folder} already exist. Not creating new folder.")
|
||||
finally:
|
||||
return str(screenshot_folder)
|
||||
|
||||
|
Reference in New Issue
Block a user