Skip to content

Commit 983aebe

Browse files
authored
Merge branch 'main' into mintlify/f5da8d82
2 parents 6446cfb + 43d62fb commit 983aebe

78 files changed

Lines changed: 5113 additions & 869 deletions

File tree

Some content is hidden

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

.github/workflows/sync-openapi.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,20 @@ jobs:
4444
branch: "chore/sync-openapi"
4545
delete-branch: true
4646

47-
- name: Enable auto-merge (when checks pass)
47+
- name: Wait for checks and merge
4848
if: steps.cpr.outputs.pull-request-number != ''
49-
uses: peter-evans/enable-pull-request-automerge@v3
50-
with:
51-
token: ${{ secrets.DOCS_BOT_TOKEN }}
52-
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
53-
merge-method: squash
49+
env:
50+
GH_TOKEN: ${{ secrets.DOCS_BOT_TOKEN }}
51+
run: |
52+
set -euo pipefail
53+
pr="${{ steps.cpr.outputs.pull-request-number }}"
54+
# Give the pull_request workflow a moment to register checks before watching.
55+
for i in $(seq 1 10); do
56+
if gh pr checks "$pr" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then break; fi
57+
sleep 15
58+
done
59+
gh pr checks "$pr" -R "$GITHUB_REPOSITORY" --watch --fail-fast --interval 30
60+
# --admin bypasses the "require status check" base-branch policy on the
61+
# immediate merge. Safe here: checks are already confirmed green above, and
62+
# the bot token (admin) only ever merges this one bot-generated sync PR.
63+
gh pr merge "$pr" -R "$GITHUB_REPOSITORY" --squash --delete-branch --admin

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ workflows/docs-audit/artifacts/**
2424
!workflows/docs-audit/artifacts/
2525
workflows/docs-audit/state/**
2626
!workflows/docs-audit/state/
27+
scratch

0 commit comments

Comments
 (0)