repo_setup_remotes
Clone a GitHub fork and configure upstream remote for pull request workflows. Automates fork setup by adding upstream, fetching changes, and checking out the base branch.
Instructions
Clone the user's fork and add the upstream remote.
This helper encapsulates the recommended cloning workflow for a fork-based
contribution flow:
1. Clone the fork into repo/
2. Add upstream remote
3. Fetch upstream
4. Checkout base branch tracking upstream
All operations happen inside E2B sandbox.
Both fork and upstream URLs must be in the allowlist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fork_url | Yes | ||
| base_branch | No | main | |
| upstream_url | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||