Skip to content

Commit 8dddfab

Browse files
chore(internal): add breaking change detection
1 parent 8c3106e commit 8dddfab

File tree

3 files changed

+681
-1
lines changed

3 files changed

+681
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- next
7+
8+
jobs:
9+
detect_breaking_changes:
10+
runs-on: 'ubuntu-latest'
11+
name: detect-breaking-changes
12+
if: github.repository == 'cloudflare/cloudflare-go'
13+
steps:
14+
- name: Calculate fetch-depth
15+
run: |
16+
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17+
18+
- uses: actions/checkout@v4
19+
with:
20+
# Ensure we can check out the pull request base in the script below.
21+
fetch-depth: ${{ env.FETCH_DEPTH }}
22+
23+
- name: Setup go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version-file: ./go.mod
27+
28+
- name: Detect breaking changes
29+
run: ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1769
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-96ad9bfaad2a1dce9c6cccc0b105a257651c44566e5038a75fbf769f2ffacd9b.yml
33
openapi_spec_hash: 241cae658fd35c1eca02921272879760
4-
config_hash: 553b8c9fbe8068eae649aed371f36d6f
4+
config_hash: 18e6b76de8b719dd7c9c28614ac32643

0 commit comments

Comments
 (0)