imgbot / Imgbot

An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. help@imgbot.net
https://imgbot.net/
MIT License
1.23k stars 270 forks source link

Add config entry to disable for repo #892

Open davwheat opened 3 years ago

davwheat commented 3 years ago

I use Upptime (open source status page) which continuously updates graph images to show response time for my services.

imgbot is constantly attempting to optimise these whenever they're updated, wasting your computational time.

I'd love a simple enabled key in the JSON config to entirely disable imgbot for a single repo.

selul commented 3 years ago

@davwheat when you install the app, you have the option to enable on which repositories you want imgbot to run, removing the ones that you don't need.

Will it work for your usecase?

davwheat commented 3 years ago

Yes, I suppose. I do enjoy having it on by-default for new repos when I create them. Changing to "Select repositories" would mean I'd have to manually enable it when I have new repositories.

GrigoreMihai commented 2 years ago

@davwheat To entirely disable a repository you will have to remove that repository from the app settings in the "Select repositories" option, having a key in .imgbotconfig will only allow us to skip the repository from optimization, but github will still send events to the app when the repository is updated. Also we now have an option to remove a repository from optimization from your account here: https://imgbot.net/ for the paid plans that have a limited number of private repositories which should help users manage their account. I do not think that the flag in .imgbotconfig will help to much considering the things mentioned above, let me know what you think ?

davwheat commented 2 years ago

I explained why I did not wish to use the Select Repositories option above, and I don't have a paid plan, so these suggestions are particularly useful to me.

All I wanted to do was save you processing time and money. It doesn't have any effect on me personally, whether this feature exists or not.