Skip to content

Commit cf2abae

Browse files
committed
Comment adjustment steps and describe them
1 parent 710094e commit cf2abae

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ The steps for creating a `vX.Y.Z-rel` branch are:
211211
- merge changes to `src/oas.md` back into `vX.Y-dev` via PR
212212
4. Create `vX.Y.Z-rel` from `vX.Y-dev` and adjust it
213213
- the bash script `scripts/adjust-release-branch.sh` does this:
214-
- move file `src/oas.md` to `versions/X.Y.Z.md`
214+
- copy file `src/oas.md` to `versions/X.Y.Z.md` and replace the release date placeholder `| TBD |` in the history table of Appendix A with the current date
215215
- copy file `EDITORS.md` to `versions/X.Y.Z-editors.md`
216-
- delete folder `src/schemas`
216+
- delete folder `src`
217217
- delete version-specific files and folders from `tests/schema`
218218
- file `schema.test.mjs`
219219
- folders `pass` and `fail`

scripts/adjust-release-branch.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ vVersion=$(basename "$branch" "-rel")
1616
version=${vVersion:1}
1717
echo Prepare release of $version
1818

19+
# create snapshot of current editors
1920
cp EDITORS.md versions/$version-editors.md
21+
# Replace release date placeholder with current date - should only appear in the history table
2022
sed "s/| TBD |/| $today |/g" src/oas.md > versions/$version.md
23+
# show what changed in the spec - should only be the history table line for the current release
2124
diff -w src/oas.md versions/$version.md
25+
# remove files that only exist in development branches and not on main
2226
rm -r src
2327
rm -r tests/schema/pass tests/schema/fail
2428
rm tests/schema/schema.test.mjs

0 commit comments

Comments
 (0)