Commit 74193bc
authored
ci: fail Lint gen on newly created files (#504)
'git diff --exit-code' only inspects tracked files, so when 'make gen'
produces new Markdown (e.g. for a new resource or data source), the
check passes while the generated file remains uncommitted.
Switch the check to 'git status --porcelain' so both modifications and
untracked output fail the step, and print the offending paths and diff
for easier debugging.
Generated by Coder Agents on behalf of @zedkipp.1 parent af77cd5 commit 74193bc
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
0 commit comments