Skip to content

Commit 7c7b9dd

Browse files
authored
Merge pull request #5037 from OAI/v3.2-dev-sync-with-dev
2 parents 55816a2 + 6ef6497 commit 7c7b9dd

17 files changed

+11608
-88
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ present on the main branch, only on the development branches).
77
88
* 3.1.x spec and schemas: v3.1-dev branch
99
* 3.2.x spec and schemas: v3.2-dev branch
10+
* 3.3.x spec and schemas: v3.3-dev branch
1011
* registry templates: gh-pages branch, registry/...
1112
* registry contents: gh-pages branch, registries/...
1213
* process documentation and build infrastructure: main

.github/workflows/respec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
delete-branch: true
4848
path: deploy
4949
labels: Housekeeping
50-
reviewers: darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
50+
reviewers: earth2marsh,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
5151
title: Update ReSpec-rendered specification versions
5252
commit-message: Update ReSpec-rendered specification versions
5353
signoff: true

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

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
push:
1212
branches:
1313
- dev
14+
workflow_dispatch: {}
1415

1516
jobs:
1617
sync-branches:
@@ -22,36 +23,49 @@ jobs:
2223
with:
2324
app-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
2425
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
25-
26+
2627
- name: Checkout repository
2728
uses: actions/checkout@v5
2829
with:
2930
fetch-depth: 0
31+
token: ${{ steps.generate-token.outputs.token }}
3032

3133
- name: Create pull requests
3234
id: pull_requests
3335
shell: bash
3436
run: |
37+
git config user.name "github-actions[bot]"
38+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39+
3540
DEV_BRANCHES=$(git branch -r --list origin/v?.?-dev)
3641
for DEV_BRANCH in $DEV_BRANCHES; do
3742
BASE=${DEV_BRANCH:7}
38-
EXISTS=$(gh pr list --base $BASE --head $HEAD \
43+
SYNC="$BASE-sync-with-$HEAD"
44+
45+
git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE
46+
git merge origin/$HEAD -m "Merge $HEAD into $SYNC"
47+
git checkout origin/$BASE src/*
48+
git checkout origin/$BASE tests/*
49+
git commit -m "Restored src/* and tests/*" || echo ""
50+
git push -u origin $SYNC
51+
52+
EXISTS=$(gh pr list --base $BASE --head $SYNC \
3953
--json number --jq '.[] | .number')
4054
if [ ! -z "$EXISTS" ]; then
41-
echo "PR #$EXISTS already wants to merge $HEAD into $BASE"
55+
echo "PR #$EXISTS already wants to merge $SYNC into $BASE"
4256
continue
4357
fi
4458
45-
PR=$(gh pr create --base $BASE --head $HEAD \
59+
PR=$(gh pr create --base $BASE --head $SYNC \
4660
--label "Housekeeping" \
47-
--title "$BASE: update from $HEAD" \
48-
--body "Merge \`$HEAD\` into \`$BASE\`.")
61+
--title "$BASE: sync with $HEAD" \
62+
--body "Merge relevant changes from \`$HEAD\` into \`$BASE\`.")
4963
echo ""
5064
echo "PR to sync $DEV_BRANCH: $PR"
5165
sleep 10 # allow status checks to be triggered
5266
5367
gh pr checks $PR --watch --required || continue
54-
gh pr merge $PR --merge --admin
68+
# gh pr merge $PR --merge --admin
5569
done
5670
env:
5771
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
push:
1212
branches:
1313
- main
14+
workflow_dispatch: {}
1415

1516
jobs:
1617
sync-branch:
@@ -25,22 +26,36 @@ jobs:
2526

2627
- name: Checkout repository
2728
uses: actions/checkout@v5
29+
with:
30+
fetch-depth: 0
31+
token: ${{ steps.generate-token.outputs.token }}
2832

2933
- name: Create pull request
3034
id: pull_request
3135
shell: bash
3236
run: |
33-
EXISTS=$(gh pr list --base $BASE --head $HEAD \
37+
git config user.name "github-actions[bot]"
38+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39+
SYNC="$BASE-sync-with-$HEAD"
40+
41+
git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE
42+
git merge origin/$HEAD -m "Merge $HEAD into $SYNC"
43+
git checkout origin/$BASE src/*
44+
git checkout origin/$BASE tests/*
45+
git commit -m "Restored src/* and tests/*" || echo ""
46+
git push -u origin $SYNC
47+
48+
EXISTS=$(gh pr list --base $BASE --head $SYNC \
3449
--json number --jq '.[] | .number')
3550
if [ ! -z "$EXISTS" ]; then
36-
echo "PR #$EXISTS already wants to merge $HEAD into $BASE"
51+
echo "PR #$EXISTS already wants to merge $SYNC into $BASE"
3752
exit 0
3853
fi
3954
40-
gh pr create --base $BASE --head $HEAD \
55+
gh pr create --base $BASE --head $SYNC \
4156
--label "Housekeeping" \
42-
--title "$BASE: update from $HEAD" \
43-
--body "Merge \`$HEAD\` into \`$BASE\`."
57+
--title "$BASE: sync with $HEAD" \
58+
--body "Merge relevant changes from \`$HEAD\` into \`$BASE\`."
4459
env:
4560
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
4661
HEAD: main

.github/workflows/validate-markdown.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@ on: [push, pull_request]
1313

1414
jobs:
1515
lint:
16-
1716
runs-on: ubuntu-latest
1817

1918
steps:
20-
21-
- uses: actions/checkout@v5 # checkout repo content
22-
with:
23-
fetch-depth: 0
19+
- uses: actions/checkout@v5 # checkout repo content
20+
21+
- uses: actions/setup-node@v5 # setup Node.js
22+
with:
23+
node-version: "20.x"
2424

25-
- uses: actions/setup-node@v5 # setup Node.js
26-
with:
27-
node-version: '20.x'
25+
- name: Lint work-in-progress spec
26+
run: npx --yes markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md
2827

29-
- name: Lint work-in-progress spec
30-
run: npx --yes markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md
28+
- name: Lint other files
29+
run: npx --yes markdownlint-cli2 *.md
3130

32-
- name: Lint other files
33-
run: npx --yes markdownlint-cli2 *.md
31+
- name: Check links in markdown files
32+
uses: umbrelladocs/action-linkspector@v1
33+
with:
34+
reporter: github-check
35+
fail_level: any
36+
filter_mode: nofilter

.linkspector.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
files:
2+
- src/oas.md
3+
- CONTRIBUTING.md
4+
- EDITORS.md
5+
# - GOVERNANCE.md
6+
- IMPLEMENTATIONS.md
7+
- MAINTAINERS.md
8+
- README.md
9+
- SECURITY_CONSIDERATIONS.md
10+
- SPECIAL_INTEREST_GROUPS.md
11+
- style-guide.md
12+
- TOB.md
13+
ignorePatterns:
14+
- pattern: 'clientdomain.com'
15+
- pattern: 'example.org'

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Exceptions may be made when links to external URLs have been changed by a 3rd pa
1010

1111
Published versions of the specification are in the `versions/` folder.
1212
The under-development versions of the specification are in the file `src/oas.md` on the appropriately-versioned branch.
13-
For example, work on the next release for 3.2 is on `v3.2-dev` in the file `src/oas.md`.
13+
For example, work on the next patch release for 3.2 is on `v3.2-dev` in the file `src/oas.md`, and work on the next minor release with additional features for 3.3 is on `v3.3-dev`.
1414

1515
The [spec site](https://spec.openapis.org) is the source of truth for the OpenAPI specification as it contains all the citations and author credits (the markdown in this repository was previously the authoritative version until 2024).
1616

@@ -24,7 +24,8 @@ The current active specification releases are:
2424
| Version | Branch | Notes |
2525
| ------- | ------ | ----- |
2626
| 3.1.2 | `v3.1-dev` | active patch release line |
27-
| 3.2.0 | `v3.2-dev` | minor release in development |
27+
| 3.2.0 | `v3.2-dev` | active patch release line |
28+
| 3.3.0 | `v3.3-dev` | minor release in development |
2829
| 4.0.0 | [OAI/sig-moonwalk](https://github.com/OAI/sig-moonwalk) | [discussions only](https://github.com/OAI/sig-moonwalk/discussions) |
2930

3031

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Looking to see how you can create your own OpenAPI definition, present it, or ot
3333
The current process for developing the OpenAPI Specification is described in
3434
the [Contributing Guidelines](CONTRIBUTING.md).
3535

36-
Developing the next version of the OpenAPI Specification is guided by the [Technical Steering Committee (TSC)](https://www.openapis.org/participate/how-to-contribute/governance#TDC). This group of committers bring their API expertise, incorporate feedback from the community, and expand the group of committers as appropriate. All development activity on the future specification will be performed as features and merged into this branch. Upon release of the future specification, this branch will be merged to `main`.
36+
Developing the next version of the OpenAPI Specification is guided by the [Technical Steering Committee (TSC)](MAINTAINERS.md). This group of committers bring their API expertise, incorporate feedback from the community, and expand the group of committers as appropriate. All development activity on the future specification will be performed as features and merged into this branch. Upon release of the future specification, this branch will be merged to `main`.
3737

3838
The TSC holds weekly web conferences to review open pull requests and discuss open issues related to the evolving OpenAPI Specification. Participation in weekly calls and scheduled working sessions is open to the community. You can view the entire OpenAPI [technical meeting calendar](https://calendar.google.com/calendar/u/0/[email protected]) online.
3939

0 commit comments

Comments
 (0)