Build bot currently not building updated icons #656
Labels
discussion
Use this label for community discussions about changes/features/..
enhancement
help wanted
Use this label if you require some help on a specific topic
Problem
Adding a new SVG to a folder that has been built will not make the new SVG to be built. This also applies to updating an SVG within a built folder
Current Situation
The
build bot
only searches whether an icon folder has been added to theicomoon.json
. If it has, that entire folder and its content, will not be built. This was done so searching through theicomoon.json
is faster than searching every icon.In the screenshot below, I'm looping through the
icomoon.json
and if I found a name (ex. apple), I'm finished.Possible Fixes
I can think of four ways of doing this:
build bot
rebuilds the entire repo every time it's run.devicon.json
is up to datedevicon.json
that tells the bot whether a folder has been updated. The bot, when building, will also checks for this property and add the "updated" icon to the build list.devicon.json
. However, this property is optional and only need to be added when an icon needs to be re-built.Example how option 3 will work. We need to update the
codecov
folder. Maybe old icons got updated. Maybe we add more versions to the folder. We will add theupdated
property to thecodecov
object indevicon.json
.The bot will parse the file and add them to the build list. Afterwards, it will rewrite the
devicon.json
and remove that attribute.devicon.json
andicomoon.json
, the bot will check the PR history since last build and extract the icon name from the PR titles.get_release_message
bot. Since all icon PR are tagged withfeature:icon
, finding icon PR would be easy. Extracting the icon name is easy as well sincepeek-bot
already does this.feature:icon
.What do you guys think?
The text was updated successfully, but these errors were encountered: