Skip to content

Commit 0f9aa49

Browse files
authored
Merge pull request #5550 from OAI/dev-sync-with-main
dev: sync with main
2 parents 16760d3 + f4fcc96 commit 0f9aa49

7 files changed

Lines changed: 5679 additions & 8 deletions

File tree

‎.github/workflows/sync-dev-to-vX.Y-dev.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
# exclude mjs files because we want to sync from the head
5050
# neutralizes non-zero exit code because an empty selection result returns 1
5151
git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo ""
52+
# Preserve the destination branch's schema test runner.
53+
git checkout "origin/$BASE" -- tests/schema/schema.test.mjs
5254
git commit -m "Restored src/ and tests/schema/" || echo ""
5355
git push -u origin $SYNC
5456

‎.github/workflows/sync-main-to-dev.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
# exclude mjs files because we want to sync from the head
4646
# neutralizes non-zero exit code because an empty selection result returns 1
4747
git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo ""
48+
# Preserve the destination branch's schema test runner.
49+
git checkout "origin/$BASE" -- tests/schema/schema.test.mjs
4850
git commit -m "Restored src/ and tests/schema/" || echo ""
4951
git push -u origin $SYNC
5052

‎CONTRIBUTING.md‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,12 @@ Reviews requesting changes should have their changes addressed regardless of how
234234
The specification versions are published to the [spec site](https://spec.openapis.org/oas) by creating an `vX.Y.Z-rel` branch where `src/oas.md` is renamed to the appropriate `versions/X.Y.Z.md` file and then merged to `main`.
235235
This renaming on the `vX.Y.Z-rel` branch preserves the commit history for the published file on `main` when using `git log --follow` (as is the case for all older published files).
236236

237-
The steps for creating a `vX.Y.Z-rel` branch are:
237+
Before you start check that you have:
238+
239+
- release notes
240+
- approval by TSC vote for the content you are releasing
241+
242+
The steps for publishing a new specification version are:
238243

239244
1. Update `EDITORS.md` on `main`
240245
2. Merge `main` into `dev` and `dev` into `vX.Y-dev` via PRs
@@ -245,18 +250,24 @@ The steps for creating a `vX.Y.Z-rel` branch are:
245250
- open `deploy-preview/oas.html` in browser and verify correct formatting
246251
- adjust and repeat until done
247252
- merge changes to `src/oas.md` back into `vX.Y-dev` via PR
248-
4. Create `vX.Y.Z-rel` from `vX.Y-dev` and adjust it
249-
- `yarn adjust-release-branch` does this:
253+
4. Create a branch `vX.Y.Z-rel` from `vX.Y-dev` and use `yarn adjust-release-branch` to adjust it.
254+
- `yarn adjust-release-branch` does the following:
250255
- 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
251256
- copy file `EDITORS.md` to `versions/X.Y.Z-editors.md`
252257
- delete folder `src`
253258
- delete version-specific files and folders from `tests/schema`
254259
- file `schema.test.mjs`
255260
- folders `pass` and `fail`
261+
- the changes are now staged; use `git diff --cached` to review them (it is expected that a lot of files show as deleted)
262+
- commit the changes
256263
5. Merge `vX.Y.Z-rel` into `main` via PR
257264
- this PR should only add files `versions/X.Y.Z.md` and `versions/X.Y.Z-editors.md`
265+
6. Tag a release using GitHub's Releases feature; add the release notes as the description (don't autogenerate release notes).
266+
7. Manually trigger the [`respec` workflow](https://github.com/OAI/OpenAPI-Specification/blob/main/.github/workflows/respec.yaml). This workflow:
267+
- generates HTML renderings of the files in the `versions/` directory of the main branch on this repository
268+
- opens a pull request on the [repository for the spec site](https://github.com/OAI/spec.openapis.org)
258269

259-
The HTML renderings of the specification versions are generated from the `versions` directory on `main` by manually triggering the [`respec` workflow](https://github.com/OAI/OpenAPI-Specification/blob/main/.github/workflows/respec.yaml), which generates a pull request for publishing the HTML renderings to the [spec site](https://spec.openapis.org).
270+
When that pull request is merged, the specification is included on the [spec site](https://spec.openapis.org)
260271

261272
The release commands are implemented in
262273
[`OAI/build-infra`](https://github.com/OAI/build-infra). If a command behaves

‎spec.config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"value": "Commit history",
29-
"href": "https://github.com/OAI/OpenAPI-Specification/commits/main/versions/30.0.1.md"
29+
"href": "https://github.com/OAI/OpenAPI-Specification/commits/main/versions/{version}.md"
3030
},
3131
{
3232
"value": "Pull requests",

‎versions/3.2.1-editors.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# OpenAPI Specification Editors
2+
3+
## Active
4+
5+
* Henry Andrews [@handrews](https://github.com/handrews)
6+
* Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
7+
* Karen Etheridge [@karenetheridge](https://github.com/karenetheridge)
8+
* Lorna Mitchell [@lornajane](https://github.com/lornajane)
9+
* Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
10+
* Miguel Quintero [@miqui](https://github.com/miqui)
11+
* Mike Kistler [@mikekistler](https://github.com/mikekistler)
12+
* Ralf Handl [@ralfhandl](https://github.com/ralfhandl)
13+
* Vincent Biret [@baywet](https://github.com/baywet)
14+
15+
## Emeritus
16+
17+
* Ron Ratovsky [@webron](https://github.com/webron)
18+
* Darrel Miller [@darrelmiller](https://github.com/darrelmiller)
19+
* Mike Ralphson [@MikeRalphson](https://github.com/MikeRalphson)
20+
* Uri Sarid [@usarid](https://github.com/usarid)
21+
* Jason Harmon [@jharmn](https://github.com/jharmn)
22+
* Tony Tam [@fehguy](https://github.com/fehguy)

0 commit comments

Comments
 (0)