You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ npm run build-dev
79
79
80
80
### Specification Versions
81
81
82
-
The specification versions are published to the [spec site](https://spec.openapis.org) by creating an `vX.Y.Z-rel` branch where `versions/X.Y.Z-dev.md` is renamed to `versions/X.Y.Z.md` and then merged to`main`.
82
+
The specification versions are published to the [spec site](https://spec.openapis.org) by creating an `vX.Y.Z-rel` branch where `versions/X.Y.Z-dev.md` is renamed to `versions/X.Y.Z.md` and then merged into`main`.
83
83
This renaming preserves the commit history when using `git log --follow`.
84
84
85
85
The steps for creating a `vX.Y.Z-rel` branch are:
@@ -98,38 +98,36 @@ The steps for creating a `vX.Y.Z-rel` branch are:
98
98
- for an X.Y.0 release
99
99
- move folder `schemas/vX.Y-dev` to `schemas/vX.Y`
100
100
- move folder `tests/vX.Y-dev` to `tests/vX.Y`
101
-
4.Merge`vX.Y.Z-rel` into `main` via pull request
101
+
4.Commit, push, and merge`vX.Y.Z-rel` into `main` via pull request
102
102
5. Archive branch `vX.Y.Z-rel`
103
103
104
104
HTML renderings of the specification versions are generated from the `versions` folder on `main` by the `respec` workflow on changes to files in that folder, which generates a pull request for publishing the HTML renderings to the [spec site](https://spec.openapis.org/overlay). The workflow can be run manually if required.
105
105
106
106
Schema iterations are generated from the YAML source files in `schemas/vX.Y` by converting them to JSON, renaming to the relevant last-changed dates, and replacing the `WORK-IN-PROGRESS` placeholders with these dates. This is done by the `schema-publish` workflow on changes to files in these folders, which generates a pull request for publishing the new schema iterations to the [spec site](https://spec.openapis.org/overlay). The workflow can be run manually if required.
107
107
108
-
<!--#### Start Next Patch Version
108
+
#### Start Next Patch Version
109
109
110
110
Once the released specification version is published, the next patch version X.Y.(Z+1) can be started:
111
111
112
-
1. Run bash script `scripts/start-release.sh` in branch `main` to
113
-
- create branch `vX.Y-dev-start-X.Y.(Z+1)`
114
-
- initialize `src/oas.md` with empty history and content from `versions/X.Y.Z.md`
115
-
- change version heading to X.Y.(Z+1) and add a new line to the version history table in Appendix A of `src/oas.md`
116
-
- commit and push changes
117
-
2. Merge changes into `main` via pull request
112
+
1. Run bash script `scripts/start-release.sh X.Y.(Z+1)` in branch `main` to
113
+
- create branch `start-X.Y.(Z+1)`
114
+
- initialize `versions/X.Y.(Z+1)-dev.md` with empty history and content from `versions/X.Y.Z.md`
115
+
- change version heading to X.Y.(Z+1) and add a new line to the version history table in Appendix A
116
+
- commit changes
117
+
2.Push branch `start-X.Y.(Z+1)` and merge into `main` via pull request
118
118
119
119
#### Start New Minor or Major Version
120
120
121
121
A new minor version X.(Y+1).0 or major version (X+1).0.0 is started similarly:
122
122
123
-
1. Create branch `vX'.Y'-dev` from `vX.Y-dev`
124
-
2. Run bash script `scripts/start-release.sh` in the new branch to
125
-
- create branch `vX'.Y'-dev-start-X'.Y'.0`
126
-
- initialize `src/oas.md` with empty history and content from `versions/X.Y.Z.md`
127
-
- change version heading to X'.Y'.0 and add a new line to the version history table in Appendix A of `src/oas.md`
128
-
- change version in all schema files `src/schemas/validation/.yaml`
129
-
- change version in schema test script `tests/schema/schema.test.mjs`
130
-
- change version in schema test fixtures in folders `tests/schema/pass` and `tests/schema/fail`
131
-
- commit and push changes
132
-
3. Merge `vX'.Y'-dev-start-X'.Y'.0` into `vX'.Y'-dev` via pull request -->
123
+
1. Run bash script `scripts/start-release.sh X'.Y'.0` in branch `main` to
124
+
- create branch `start-X'.Y'.0`
125
+
- initialize `versions/X'.Y'.0-dev.md` with empty history and content from `versions/X.Y.Z.md`
126
+
- change version heading to X'.Y'.0 and add a new line to the version history table in Appendix A
127
+
- copy schema files `schemas/vX.Y` to `schemas/vX'.YY'-dev` and change version in all schema files
128
+
- copy schema tests `tests/vX.Y` to `tests/vX'.YY'-dev` and change version in all test files
129
+
- commit changes
130
+
2. Push branch `start-X'.Y'.0` and merge into `main` via pull request
0 commit comments