Open NickLarsenNZ opened 3 months ago
Similar changes would need to be made in other repositories such as:
Ok, this is a bit more complicated in Github Actions, because there is only one ref:
$ git show-ref
d0de6cda5ad2e24366f07ad20f1f786ae2688116 refs/remotes/pull/790/merge
So, we need to use some github event data: https://github.com/pre-commit/action/issues/7#issuecomment-1251300704
Currently the pre-commit checks are not picking up problems, because it is skipping all checks in CI
As @Techassi found in the docs: https://pre-commit.com/#usage-in-continuous-integration, it needs to be run with extra options:
For each fix, do the following:
--from-ref origin/HEAD --to-ref HEAD
rev
tags with commit hashes like we do in github actions)