mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-05 14:55:44 +00:00
chore: scope fmt-check to Go sources (#1125)
`fmt-check` runs `make fmt` and then diffs the whole working tree, so any unrelated uncommitted file makes it fail with `Please run 'make fmt' and commit the result` even when the formatter changed nothing. Restrict the diff to the files the formatter can touch, matching what [gitea's Makefile](https://github.com/go-gitea/gitea/blob/main/Makefile) does. Reviewed-on: https://gitea.com/gitea/runner/pulls/1125 Reviewed-by: techknowlogick <[email protected]> Co-authored-by: silverwind <[email protected]>
This commit is contained in:
1 parent
41c72216bf
commit
e4fe49dba4
1 file changed
+1
-1
Reference in new issue
Block a user