Imgbot icon indicating copy to clipboard operation
Imgbot copied to clipboard

Add config entry to disable for repo

Open davwheat opened this issue 3 years ago • 4 comments

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.

davwheat avatar Apr 25 '21 14:04 davwheat

@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?

selul avatar Sep 02 '21 08:09 selul

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.

davwheat avatar Sep 02 '21 09:09 davwheat

@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 ?

GrigoreMihai avatar Oct 27 '21 11:10 GrigoreMihai

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.

davwheat avatar Oct 27 '21 12:10 davwheat