Commit 5c81b26
committed
fix(ci): detect untracked generated files in regen diff checks
git diff --quiet only reports tracked-file changes, so a brand-new
generated file (e.g. a future <thing>_gen.go) would leave changed=false
and silently skip formatting, tests, and PR creation. Switch both
diff checks to git status --porcelain --untracked-files=all, which
also reports ?? entries for untracked paths.1 parent 7d36fe8 commit 5c81b26
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments