Skip to content

Commit 80099a8

Browse files
committed
werft runs only on modified files
1 parent fb4b9d6 commit 80099a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.werft/jobs/build/validate-changes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function branchNameCheck(werft: Werft, config: JobConfig) {
2929

3030
async function preCommitCheck(werft: Werft) {
3131
werft.log("pre-commit checks", "Running pre-commit hooks.")
32-
const preCommitCmd = exec(`pre-commit run --all-files --show-diff-on-failure`, { slice: "pre-commit checks" });
32+
const preCommitCmd = exec(`pre-commit run --show-diff-on-failure`, { slice: "pre-commit checks" });
3333

3434
if (preCommitCmd.code != 0) {
3535
throw new Error(preCommitCmd.stderr.toString().trim())

0 commit comments

Comments
 (0)