Skip to content

Commit 35422e1

Browse files
authored
Merge pull request #4397 from OAI/dev
v3.2-dev: update from dev
2 parents ca59b57 + 143c641 commit 35422e1

Some content is hidden

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

78 files changed

+2445
-6646
lines changed

.github/pull_request_template.md

+6
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/templates/agenda.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Meetings take place over Zoom: [https://zoom.us/j/975841675](https://zoom.us/j/9
2020

2121
| Blur My Background | Raise Hand |
2222
|-|-|
23-
| <img width="323" alt="Screenshot of Zoom UI showing the 'Stop Video' and 'Blur My Background' control" src="https://github.com/OAI/OpenAPI-Specification/assets/7367/7e43dbbb-6529-46e6-8b04-4c1aa852d9dd"> | <img width="323" alt="Screenshot of Zoom UI showing the 'Reaction' and 'Raise Hand' control" src="https://github.com/OAI/OpenAPI-Specification/assets/7367/f991722f-4651-40aa-9bc4-7e9a2a165a6a"> |
23+
| <img width="323" alt="Screenshot of Zoom UI showing the 'Stop Video' and 'Blur My Background' control" src="https://github.com/OAI/OpenAPI-Specification/assets/7367/7e43dbbb-6529-46e6-8b04-4c1aa852d9dd"> | <img width="323" alt="Screenshot of Zoom UI showing the 'Reaction' and 'Raise Hand' control" src="https://github.com/user-attachments/assets/bf19ee70-59b1-410e-b893-645f26c2c96e"> |
2424

2525
### Agenda Structure
2626

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: check-restricted-files
2+
3+
# Author: @ralfhandl
4+
# Issue: https://github.com/OAI/OpenAPI-Specification/issues/3432
5+
6+
# This workflow fails if restricted files are changed in a pull request
7+
8+
on:
9+
pull_request:
10+
paths:
11+
- 'schemas/**/*.yaml'
12+
- 'versions/*.md'
13+
14+
jobs:
15+
check-files:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check changed files
19+
shell: bash
20+
run: |
21+
echo This PR contains changes to files that should not be changed
22+
exit 1

.github/workflows/schema-publish.yaml

+12-8
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[0-9].[0-9]-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

+2-4
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
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: sync-main-to-dev
2+
3+
# author: @ralfhandl
4+
5+
#
6+
# This workflow creates PRs to update the dev branch with the latest changes from main
7+
#
8+
9+
# run this on push to main
10+
on:
11+
push:
12+
branches:
13+
- main
14+
15+
jobs:
16+
sync-branch:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Create pull request
23+
id: pull_request
24+
shell: bash
25+
run: |
26+
EXISTS=$(gh pr list --base $BASE --head $HEAD \
27+
--json number --jq '.[] | .number')
28+
if [ ! -z "$EXISTS" ]; then
29+
echo "PR #$EXISTS already wants to merge $HEAD into $BASE"
30+
exit 0
31+
fi
32+
33+
gh pr create --base $BASE --head $HEAD \
34+
--label "Housekeeping" \
35+
--title "$BASE: update from $HEAD" \
36+
--body "Merge \`$HEAD\` into \`$BASE\`."
37+
env:
38+
GH_TOKEN: ${{ github.token }}
39+
HEAD: main
40+
BASE: dev

.github/workflows/validate-markdown.yaml

+4-3
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

+1
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

0 commit comments

Comments
 (0)