@devries-cameron20 / composio-1 / commits / 3374b477a
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): simplify staging data sync URLs (#3596)

This PR: - simplifies `COMPOSIO_BASE_URL_STAGING` handling by stripping optional `/api/v3` or `/api/v3.1` suffixes before deriving both docs API endpoints - removes the URL-shape branching that rejected the current staging secret - keeps the production backend guard so the update-data workflow does not use `https://backend.composio.dev` - uses `CI_BOT_TOKEN` for `peter-evans/create-pull-request` and reviewer requests because `GITHUB_TOKEN` cannot create pull requests in this repo - verified with `go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/docs-update-data.yml`, `git diff --check`, and shell URL derivation checks

Alberto Schiabel committed Jun 17, 2026 at 18:42 UTC 3374b477a61cb295dffbaa1894eb0ff8ec6a1546
1 file changed +6 -11
.github/workflows/docs-update-data.yml
+6 -11
@@ -55,16 +55,10 @@ jobs:
55 exit 1
56 fi
57
58 - if [[ "$staging_base" == */api/v3 ]]; then
59 - staging_v3_base="$staging_base"
60 - staging_v31_base="${staging_base%/api/v3}/api/v3.1"
61 - elif [[ "$staging_base" == */api/v3.1 ]]; then
62 - staging_v3_base="${staging_base%/api/v3.1}/api/v3"
63 - staging_v31_base="$staging_base"
64 - else
65 - staging_v3_base="$staging_base/api/v3"
66 - staging_v31_base="$staging_base/api/v3.1"
67 - fi
58 + staging_origin="${staging_base%/api/v3.1}"
59 + staging_origin="${staging_origin%/api/v3}"
60 + staging_v3_base="$staging_origin/api/v3"
61 + staging_v31_base="$staging_origin/api/v3.1"
62
63 {
64 echo "COMPOSIO_API_BASE=$staging_v3_base"
@@ -108,6 +102,7 @@ jobs:
102 if: steps.changes.outputs.has_changes == 'true'
103 uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
104 with:
105 + token: ${{ secrets.CI_BOT_TOKEN }}
106 commit-message: 'docs: update toolkits and API data'
107 title: 'docs: update toolkits, API spec, and meta tools data'
108 body: |
@@ -133,7 +128,7 @@ jobs:
128 if: steps.create-pr.outputs.pull-request-number
129 continue-on-error: true
130 env:
136 - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131 + GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
132 PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
133 AUTHOR: ${{ github.actor }}
134 run: |