pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

Disable individual repos #203

Closed ms32035 closed 5 months ago

ms32035 commented 5 months ago

Please add an option to disable individual repos at https://results.pre-commit.ci/ We enable the app for all repos (including the new ones), but some of them don't have pre-commit-config.yaml, and these are left in hanging state. Issue is rather urgent and blocking

asottile commented 5 months ago

I have no control over that unfortunately. that's github's ui

ms32035 commented 5 months ago

That's not github UI, but your bespoke

asottile commented 5 months ago

you selected the "all repos" on github's ui, I have no control over that

ms32035 commented 5 months ago

This I understand, but since you also have your UI, that's a perfect place to add disabling of individual repos. Other solution would be to finish the job succesfully if no pre-commit-config is found, or make such behaviour configurable. If 90% of your repos use pre-commit, and most new ones too, you wouldn't like to manually click for every single one of them

asottile commented 5 months ago

while it is the perfect place, github does not provide an API to do so

and I pay for every request so it does not incentivize me to perform runs for waste so that's why they fail