pre-commit-ci / issues

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

Integrate pre-commit.ci into pre-commit CLI #87

Closed janosh closed 2 years ago

janosh commented 2 years ago

Would be nice if repos could be added to pre-commit.ci and managed thereafter without having to use the web interface. Perhaps the way to do this would be adding a ci command to the pre-commit CLI? So in a repo with pre-commit hooks that's not yet registered with pre-commit.ci yet, I would run

pre-commit ci add

to enable pre-commit.ci and

pre-commit ci remove

to unregister.

asottile commented 2 years ago

there isn't an api to add a github app so it would only work if you've already enabled the app for your user / org

and it would need to get a github api token from somewhere and I don't really want to be responsible for credential management