Commit d523e23
committed
Tooling: Stage oxfmt auto-fixes in the release commit
Until now, `scripts/release.sh` ran `oxfmt` (auto-fix) and then `git add`-ed a hard-coded list of version-bumped files. Anything else `oxfmt` reformatted (typically a `.claude/commands/*.md` the user touched in the same pre-release batch) was left in the working tree and never made it into the release commit. CI then failed on `oxfmt --ci` for the release tag because the committed tree didn't match the formatted tree the release script saw.
`git add -u` after the bump-stage picks up any reformatted tracked files. The pre-flight at the top of the script guarantees the working tree was clean before we started, so the only diffs at this point are the version bumps plus `oxfmt`'s auto-fixes — exactly what we want in the release commit. A second `oxfmt --ci` pass after staging is belt-and-braces: if anything still drifts, abort instead of pushing.1 parent 4ba3154 commit d523e23
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
| |||
0 commit comments