pre-commit-ci / issues

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

Debugging autofix / truncated output #158

Closed max-sixty closed 1 year ago

max-sixty commented 1 year ago

Hi there!

I'm trying to debug why there wasn't an autofix on a commit, and then why requesting an autofix didn't work:

Some context:

I then added pre-commit autofix here, and got a 🚀, but no commit. Two minutes later I then pushed the changes myself; possibly I should have waited for longer?

If there's a way for me to debug this without raising an issue, that would be awesome.

Thanks a lot as ever

asottile commented 1 year ago

github blocked all apps from making changes to workflow files (even though the permission is enabled for pre-commit ci) -- I have a year old ticket with them that they have not followed up on

as for prettier's output I have no idea, they do some wild things. you can try the docker image that's listed in your run

max-sixty commented 1 year ago

Great thanks!

asottile commented 1 year ago

pushes which fail in this way will now produce a message on the run: "GitHub prevented pre-commit.ci from autofixing this pr due to autofixes to a workflow file"

max-sixty commented 1 year ago

Awesome! Thanks @asottile !