-
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
new icon: rails (plain, plain-wordmark) #554
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hmm, this is failing because of the commit title. See https://github.com/devicons/devicon/blob/develop/CONTRIBUTING.md#overview for more information. |
I think it's only with the commit title. Once I tried renaming the PR, re-running the workflow, and it didn't work. It only worked by changing the commit title. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think I know what went wrong. The I'm looking into a possible fix. The easiest one I can think of is removing the |
@maltejur the only fix would be to modify the Edit it in the JSON:
Edit it using the Icomoon Website:
-This will download a zip file to your computer. Open it and select only the Please try those steps. I'm 99% sure that they'll work. |
This comment has been minimized.
This comment has been minimized.
Hi! Have a nice day, |
Hi there, I'm Devicons' Peek Bot and I just peeked at the icons that you wanted to add using icomoon.io. Here are the zoomed-in screenshots of the added icons: Note: If the images don't show up, it's probably because it has been autodeleted by Imgur after 6 months due to our API choice. The maintainers will now take a look at it and decide whether to merge your PR. Thank you for contributing to Devicon! I hope everything works out and your icons are accepted into the repo. Cheers, |
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.
LGTM. Thank you for your contribution! 👍 🎉
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 looks great now. Thanks @maltejur for putting in the extra work.
I'll look into a solution so this won't happen again in the future.
Thanks for the detailed fix @Thomas-Boi args = arg_getters.get_selenium_runner_args(True)
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path)
# get only the icon object that has the name matching the pr title
filtered_icons = find_object_added_in_this_pr(new_icons, args.pr_title)
if len(new_icons) == 0:
sys.exit("No files need to be uploaded. Ending script...")
if len(filtered_icons) == 0:
message = "No icons found matching the icon name in the PR's title.\n" \
"Ensure that a new icon entry is added in the devicon.json and the PR title matches the convention here: \n" \
"https://github.com/devicons/devicon/blob/master/CONTRIBUTING.md#overview.\n" \
"Ending script...\n"
sys.exit(message)
# print list of new icons
print("List of new icons:", *new_icons, sep = "\n")
print("Icons being uploaded:", *filtered_icons, sep = "\n", end='\n\n')
runner = None
try:
runner = SeleniumRunner(args.download_path, args.geckodriver_path, args.headless)
svgs = filehandler.get_svgs_paths(filtered_icons, args.icons_folder_path, True)
screenshot_folder = filehandler.create_screenshot_folder("./")
runner.upload_svgs(svgs, screenshot_folder)
print("Task completed.") Why doesn't the find_object_added_in_this_pr function just take all the icons? |
new icon: rails (plain, plain-wordmark)
Old:
![Screenshot 2021-04-08 205802](https://user-images.githubusercontent.com/48161361/114081713-31f78000-98ad-11eb-8277-655931f372c2.png)
New:
![Screenshot 2021-04-08 205829](https://user-images.githubusercontent.com/48161361/114081720-3328ad00-98ad-11eb-8dc8-af5f2a48aa21.png)
This is how their website now looks:
![Screenshot 2021-04-08 205906](https://user-images.githubusercontent.com/48161361/114081791-4a679a80-98ad-11eb-811a-100a57c88aa9.png)