Skip to content

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

refactor: use peter-evans/create-pull-request for docs sync workflows

Sushmitha Malleshf42c132b9b5c
diff --git a/.github/workflows/docs.sdk-change-sync.yml b/.github/workflows/docs.sdk-change-sync.yml
index 5c9d556df..8be272c6b 100644
--- a/.github/workflows/docs.sdk-change-sync.yml
+++ b/.github/workflows/docs.sdk-change-sync.yml
@@ -59,38 +59,23 @@ jobs:
- name: Create PR if changed
if: steps.diff.outputs.has_changes == 'true'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- if [ -z "$(git status --porcelain)" ]; then
- echo "No documentation changes needed"
- exit 0
- fi
-
- BRANCH="docs/sdk-sync-${GITHUB_SHA::7}"
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
- git checkout -b "$BRANCH"
- git add -A
- git commit -m "docs: update guides for SDK changes"
- git push -u origin "$BRANCH"
-
- gh pr create \
- --base next \
- --head "$BRANCH" \
- --title "docs: update guides for SDK changes" \
- --body "$(cat <<'EOF'
- ## Summary
- Automated docs update triggered by SDK source changes on `next`.
+ uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
+ with:
+ commit-message: 'docs: update guides for SDK changes'
+ title: 'docs: update guides for SDK changes'
+ body: |
+ ## Summary
+ Automated docs update triggered by SDK source changes on `next`.
- Claude reviewed the SDK diff and updated guides, FAQs, or examples
- that reference changed APIs or features.
+ Claude reviewed the SDK diff and updated guides, FAQs, or examples
+ that reference changed APIs or features.
- ## Review checklist
- - [ ] Changes accurately reflect the new SDK behavior
- - [ ] No unrelated docs were modified
- - [ ] Code examples are correct and complete
+ ## Review checklist
+ - [ ] Changes accurately reflect the new SDK behavior
+ - [ ] No unrelated docs were modified
+ - [ ] Code examples are correct and complete
- Generated by Claude Code via GitHub Actions.
- EOF
- )"
+ Generated by Claude Code via GitHub Actions.
+ branch: docs/auto-sdk-sync
+ base: next
+ add-paths: docs/content/docs/
diff --git a/.github/workflows/docs.sync-connect-clients.yml b/.github/workflows/docs.sync-connect-clients.yml
index e8ce782cb..b4e2b8c5c 100644
--- a/.github/workflows/docs.sync-connect-clients.yml
+++ b/.github/workflows/docs.sync-connect-clients.yml
@@ -54,38 +54,25 @@ jobs:
6. If no changes are needed, make no file changes
- name: Create PR if changed
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- if [ -z "$(git status --porcelain)" ]; then
- echo "No changes detected"
- exit 0
- fi
-
- BRANCH="docs/auto-sync-connect-clients-$(date +%Y%m%d)"
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
- git checkout -b "$BRANCH"
- git add -A
- git commit -m "docs: sync Connect clients from dashboard"
- git push -u origin "$BRANCH"
-
- gh pr create \
- --base next \
- --head "$BRANCH" \
- --title "docs: sync Connect clients from dashboard" \
- --body "$(cat <<'EOF'
- ## Summary
- Automated sync of AI client definitions from `ComposioHQ/composio_dashboard`.
+ uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
+ with:
+ commit-message: 'docs: sync Connect clients from dashboard'
+ title: 'docs: sync Connect clients from dashboard'
+ body: |
+ ## Summary
+ Automated sync of AI client definitions from `ComposioHQ/composio_dashboard`.
- Updates client setup steps, descriptions, and logos on the Composio Connect page.
+ Updates client setup steps, descriptions, and logos on the Composio Connect page.
- ## What may have changed
- - New or removed AI clients
- - Updated setup steps (deeplinks, config changes)
- - Category changes (popular/ide/other)
- - Client logos
+ ## What may have changed
+ - New or removed AI clients
+ - Updated setup steps (deeplinks, config changes)
+ - Category changes (popular/ide/other)
+ - Client logos
- Generated by Claude Code via GitHub Actions.
- EOF
- )"
+ Generated by Claude Code via GitHub Actions.
+ branch: docs/auto-sync-connect-clients
+ base: next
+ add-paths: |
+ docs/content/docs/composio-connect.mdx
+ docs/public/images/clients/