Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ repo:
name: src
lint:
definitions:
# This repository is consumed as a submodule, so `.git` is a file whose
# gitdir is relative to the superproject. Trunk's sandbox copy breaks that
# relative path, so anchor the command at the real workspace.
- name: git-diff-check
commands:
- name: lint
run: git -C "${workspace}" diff --check ${target}
- name: shfmt
commands:
- name: format
Expand Down
Loading