Skip to content

Commit d316654

Browse files
committed
chore: version contracts [skip ci]
petstore: 1.0.0 → 1.1.0
1 parent 0eb5a4a commit d316654

6 files changed

Lines changed: 77 additions & 11 deletions

File tree

.contractual/changesets/tender-jays-fly.md

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

.contractual/snapshots/petstore.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ components:
153153
type: string
154154
maxLength: 30
155155
description: Color of the pet (optional)
156+
weight:
157+
type: number
158+
minimum: 0
159+
description: Weight of the pet in kilograms (optional)
156160
status:
157161
type: string
158162
enum:

.contractual/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"petstore": {
3-
"version": "1.0.0",
4-
"released": "2026-03-27T17:12:54.432Z"
3+
"version": "1.1.0",
4+
"released": "2026-03-27T22:54:27.781Z"
55
}
66
}

.github/workflows/pr-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Contract PR Check
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'specs/**'
7+
- '.contractual/**'
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Run Contractual PR Check
21+
uses: contractual-dev/action@v1
22+
with:
23+
mode: pr-check
24+
fail-on-breaking: 'true'
25+
auto-changeset: 'true'
26+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Version Contracts
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.contractual/changesets/**'
9+
- '!.contractual/changesets/.gitkeep'
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
version:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Version Contracts
25+
id: version
26+
uses: contractual-dev/action@v1
27+
with:
28+
mode: release
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
create-releases: 'true'
31+
tag-prefix: 'contract'
32+
attach-specs: 'true'
33+
34+
- name: Summary
35+
if: steps.version.outputs.version-pr-url
36+
run: |
37+
echo "📦 Version PR: ${{ steps.version.outputs.version-pr-url }}"
38+
echo "🏷️ Tags created: ${{ steps.version.outputs.created-tags }}"
39+
echo "🚀 Releases: ${{ steps.version.outputs.release-urls }}"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [petstore] v1.1.0 - 2026-03-28
4+
5+
- **[minor]** remove response body scope at paths./pets.get.responses.200.content.application/json.schema
6+
- **[minor]** remove response body scope at paths./pets.post.responses.201.content.application/json.schema
7+
- **[minor]** remove response body scope at paths./pets/{petId}.get.responses.200.content.application/json.schema
8+
39
## [petstore] v1.0.0 - 2026-03-27
410

511
- **[BREAKING]** remove method at paths./pets/{petId}.delete

0 commit comments

Comments
 (0)