Skip to content

fix(docs): correct status code and update pending trade lock behavior for /submit endpoint #84

fix(docs): correct status code and update pending trade lock behavior for /submit endpoint

fix(docs): correct status code and update pending trade lock behavior for /submit endpoint #84

name: Auto-merge OpenAPI updates
on:
pull_request:
types: [opened, synchronize, closed]
jobs:
auto-merge:
if: |
github.event.action != 'closed' &&
startsWith(github.event.pull_request.head.ref, 'auto/update-openapi') &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login == '0x-automation[bot]'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Log merge status
run: |
echo "✅ Auto-merge enabled for PR: ${{ github.event.pull_request.html_url }}"
publish-docs:
if: |
github.event.action == 'closed' &&
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'auto/update-openapi') &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login == '0x-automation[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Fern
run: npm install -g fern-api
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --docs