File tree Expand file tree Collapse file tree 5 files changed +54
-16
lines changed Expand file tree Collapse file tree 5 files changed +54
-16
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Bug report
3+ about : Create a report to help us improve the specification
4+ title : ' vX.Y: ...'
5+ labels : ' '
6+ assignees : ' '
7+
8+ ---
9+
10+ ** Describe the error in the specification**
11+ A clear and concise description of
12+ - what the error is,
13+ - which specification versions are affected,
14+ - what you would expect the specification to say instead, and
15+ - a link to the corresponding specification section in the "oldest" affected version.
16+
17+ ** Additional context**
18+ Add any other context about the problem here.
Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ Draft pull requests can still be reviewed while in draft state.
165165
166166### Preview specification HTML locally
167167
168+ > [ !NOTE]
169+ > ` npm run build-src ` calls bash scripts. Use [ Git Bash] ( https://gitforwindows.org/ ) on Windows, or use the Windows Subsystem for Linux (WSL).
170+
168171The markdown source files are converted to HTML before publishing.
169172To do this locally, please
170173
@@ -199,7 +202,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
199202
2002031 . Update ` EDITORS.md ` on ` main `
2012042 . Merge ` main ` into ` dev ` and ` dev ` into ` vX.Y-dev ` via PRs
202- - Sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
205+ - sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
2032063 . Prepare spec files in ` vX.Y-dev `
204207 - ` npm run format-markdown `
205208 - ` npm run build-src `
@@ -211,6 +214,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
211214 - copy ` EDITORS.md ` to ` versions/X.Y.Z-editors.md `
212215 - delete ` src/schemas `
213216 - delete ` tests/schema `
217+ - bash script ` scripts/adjust-release-branch.sh ` performs these steps
2142185 . Merge ` vX.Y.Z-rel ` into ` main ` via PR
215219 - this PR should only add files ` versions/X.Y.Z.md ` and ` versions/X.Y.Z-editors.md `
216220
Original file line number Diff line number Diff line change 11{
2- "name" : " oas-schemas " ,
3- "version" : " 2 .0.0" ,
4- "description" : " OpenAPI Specification JSON schemas " ,
2+ "name" : " oas-infra " ,
3+ "version" : " 0 .0.0" ,
4+ "description" : " OpenAPI Specification Automation & Infrastructure " ,
55 "author" : {
66 "name" : " OpenAPI Initiative TSC" ,
77 "email" : " tsc@openapis.org" ,
1919 "format-markdown" : " bash ./scripts/format-markdown.sh ./src/oas.md" ,
2020 "validate-markdown" : " npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
2121 },
22- "readmeFilename" : " README.md" ,
23- "files" : [
24- " README.md" ,
25- " schemas/*"
26- ],
2722 "dependencies" : {
2823 "cheerio" : " ^1.0.0-rc.5" ,
2924 "highlight.js" : " ^11.11.1" ,
3025 "markdown-it" : " ^14.1.0" ,
31- "respec" : " 35.2.3 " ,
26+ "respec" : " 35.3.0 " ,
3227 "yargs" : " ^17.7.2"
3328 },
3429 "devDependencies" : {
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Author: @ralfhandl
4+
5+ # Run this script from the root of the repo. It is designed to be run manually in a release branch.
6+
7+ branch=$( git branch --show-current)
8+
9+ if [[ ! $branch =~ ^v[0-9]+\. [0-9]+\. [0-9]+-rel$ ]]; then
10+ echo " This script is intended to be run from a release branch, e.g. v3.1.2-rel"
11+ exit 1
12+ fi
13+
14+ vVersion=$( basename " $branch " " -rel" )
15+ version=${vVersion: 1}
16+ echo Prepare release of $version
17+
18+ cp EDITORS.md versions/$version -editors.md
19+ mv src/oas.md versions/$version .md
20+ rm -r src/schemas
21+ rm -r tests/schema
You can’t perform that action at this time.
0 commit comments