-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Peek and Build-Bot Upgrade #806
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is crazy! 👍🏻 @Thomas-Boi amazing how much effort you bring in!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know anything about Python and I'm not that experienced in this area, but overall, everything looks amazing! Awesome work, @Thomas-Boi! 😄
.github/scripts/icomoon_build.py
Outdated
filehandler.extract_files(str(zip_path), args.download_path) | ||
filehandler.rename_extracted_files(args.download_path) | ||
|
||
print("Creating the release message by querying GitHub API...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print("Creating the release message by querying GitHub API...") | |
print("Creating the release message by querying the GitHub API...") |
Thank you for contributing to Devicon! I hope everything works out and your icons are accepted into the repo. | ||
In case of font issues, it might be caused by Icomoon not accepting strokes in the SVGs. Check this [doc](https://icomoon.io/#faq/importing) for more details and fix the issues as instructed by Icomoon and update this PR once you are done. | ||
|
||
Thank you for contributing to Devicon! I hope that your icons are accepted into the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to Devicon! I hope that your icons are accepted into the repo. | |
Thank you for contributing to Devicon! I hope that your icons are accepted into the repository. |
.gitignore
Outdated
new_icons.png | ||
screenshots/ | ||
release_message.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
release_message.txt | |
release_message.txt | |
gulpfile.js
Outdated
@@ -21,7 +23,7 @@ async function createDeviconMinCSS() { | |||
await createCSSFiles(); | |||
|
|||
let deviconMinPath = path.join(__dirname, finalMinSCSSName); | |||
// recall that devicon-alias.scss imported the devicon.css => don't need | |||
// recall that devicon-alias.scss imported the devicon-icomoon.css => don't need |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// recall that devicon-alias.scss imported the devicon-icomoon.css => don't need | |
// recall that devicon-alias.scss imported the devicon-base.css => don't need |
Co-authored-by: David Leal <[email protected]>
Two things I forgot to mentioned:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I said previously, I don't know anything about Python or related to this area, but the changes mentioned in the first comment look good. Huge thanks and awesome work, @Thomas-Boi! 😄
Thank you for reviewing the changes! This took me quite a while and I'm happy that everything went well. We can start making a new release and putting the bot to work 😄 |
* 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 <[email protected]> Co-authored-by: David Leal <[email protected]>
Hello guys,
This is a big upgrade of our build/peek workflow. I thought of splitting it up into multiple PRs but there are a lot of similar aspects (
peek-bot
andbuild-bot
has the same superclass, thefooter
upgrade is a part of thebuild-bot
). I apologize in advance if this is a lot and feel free to take your time to review this.Here is a list of features according to categories:
peek-bot
:peek-bot
now takes a picture of that.peek-bot
's PR message, I added a list of things we should look out for). If not, something went wrong => could be because color is not stripped properly.build-bot
:Feature:
get_release_message
workflow into thebuild-bot
. We don't have to run the two scripts separately anymore.optimizer-bot
(a part ofbuild-bot
):\n
to each SVG after it's optimized (looking at you *nix users)<style>
tags with no issues.Things maintainer should know:
The build release message is now included in the PR message. You can copy it by hovering over the top right corner of the release message section.
Please check the files via "Edit Files" to see the
\n
in the SVG files. For some reason, GitHub don't display them but they are there. You can download the file and check locally as well => the\n
will be there.Test:
built-bot
's result.Both the upgrades require merge into
master
due to theworkflow_run
events in the related workflow files.After this PR, I have another one for
checkSvg
. After that, we can create a new release.