Skip to content

Commit 68ec9f7

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into v3.1-dev-merge-dev
2 parents 9fd4e2e + 92e5fc9 commit 68ec9f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2311
-6607
lines changed

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ present on the main branch, only on the development branches).
1313
1414
Note that we do not accept changes to published specifications.
1515
-->
16+
17+
Tick one of the following options:
18+
19+
- [ ] schema changes are included in this pull request
20+
- [ ] schema changes are needed for this pull request but not done yet
21+
- [ ] no schema changes are needed for this pull request

.github/workflows/schema-publish.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ name: schema-publish
44
# issue: https://github.com/OAI/OpenAPI-Specification/issues/3715
55

66
#
7-
# This workflow copies the 3.x schemas to the gh-pages branch
7+
# This workflow creates a pull request for publishing schema iterations to the gh-pages branch
88
#
99

10-
# run this on push to main
10+
# run this on push to vX.Y-dev branches or manually
1111
on:
1212
push:
1313
branches:
14-
- main
14+
- 'v?.?-dev'
15+
paths:
16+
- 'src/schemas/validation/*.yaml'
17+
- 'scripts/schema-publish.sh'
18+
- '.github/workflows/schema-publish.yaml'
1519
workflow_dispatch: {}
1620

1721
jobs:
@@ -26,7 +30,7 @@ jobs:
2630

2731
- uses: actions/setup-node@v4 # setup Node.js
2832
with:
29-
node-version: '20.x'
33+
node-version: '22.x'
3034

3135
- name: Install dependencies
3236
run: npm ci
@@ -43,15 +47,15 @@ jobs:
4347
uses: peter-evans/create-pull-request@v6
4448
with:
4549
token: ${{ secrets.GITHUB_TOKEN }}
46-
branch: publish-schema-iteration
50+
branch: ${{ github.ref_name }}-publish-schema-iteration
4751
base: gh-pages
4852
delete-branch: true
4953
path: deploy
5054
labels: Housekeeping,Schema
5155
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
52-
title: Publish OpenAPI Schema Iterations
56+
title: '${{ github.ref_name }}: publish OpenAPI schema iterations'
5357
commit-message: New OpenAPI schema iterations
5458
signoff: true
5559
body: |
56-
This pull request is automatically triggered by GitHub action `schema-publish`.
57-
The `schemas/**/*.yaml` files have changed and JSON files are automatically generated.
60+
This pull request is automatically generated by GitHub action `schema-publish`.
61+
The `src/schemas/validation/*.yaml` files have changed and JSON files are automatically generated.

.github/workflows/schema-tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
with:
2929
node-version: '20.x'
3030

31-
- name: Install dependencies from main
32-
run: |
33-
git checkout remotes/origin/main -- package.json package-lock.json
34-
npm ci
31+
- name: Install dependencies
32+
run: npm ci
3533

3634
- name: Run tests
3735
run: npm run test

.github/workflows/validate-markdown.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21+
2122
- uses: actions/checkout@v4 # checkout repo content
2223
with:
2324
fetch-depth: 0
24-
- name: use the javascript environment from main
25-
run: |
26-
git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
25+
2726
- uses: actions/setup-node@v4 # setup Node.js
2827
with:
2928
node-version: '20.x'
29+
3030
- name: Validate markdown
3131
run: npx --yes mdv versions/3.*.md src/oas.md
32+
3233
- name: Lint markdown 3.0.4, 3.1.1, and later
3334
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md src/oas.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ target
66
atlassian-ide-plugin.xml
77
node_modules/
88
deploy/
9+
deploy-preview/
910
coverage/
1011
history
1112
Gemfile.lock

CONTRIBUTING.md

Lines changed: 294 additions & 184 deletions
Large diffs are not rendered by default.

DEVELOPMENT.md

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)