@devries-cameron20 / composio-1 / commits / f5f915ab9
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.

docs: add GitHub connection step for CI setup

The agent needs a pre-connected GitHub account to work in CI since there's no interactive terminal for the OAuth flow. Added a one-time setup step using session.authorize(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 4, 2026 at 21:55 UTC f5f915ab97218aaa60fcb518794dc6dbfed86ab7
1 file changed +15 -2
docs/content/cookbooks/pr-review-agent.mdx
+15 -2
@@ -85,12 +85,25 @@ your-repo/
85 └── CLAUDE.md (optional)
86 ```
87
88 -Then add your secrets to the repo:
88 +Then set up your repo:
89
90 1. Go to **Settings > Secrets and variables > Actions**
91 2. Add `COMPOSIO_API_KEY` and `OPENAI_API_KEY` as repository secrets
92 +3. **Connect GitHub to Composio** (one-time setup). The agent runs as `user_123` in CI, so that user needs a GitHub connection before the workflow can post reviews:
93
93 -That's it. Every time a PR is opened or updated, the agent will review it and post a comment.
94 +```bash
95 +python -c "
96 +from composio import Composio
97 +composio = Composio()
98 +session = composio.create(user_id='user_123', toolkits=['github'])
99 +connection = session.authorize('github')
100 +print('Visit this URL to connect GitHub:', connection.redirect_url)
101 +connection.wait_for_connection()
102 +print('Connected!')
103 +"
104 +```
105 +
106 +After you authorize once, the connection persists. The GitHub Action will work for all future PRs.
107
108 ## How it works
109