Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shobcoder/shob/llms.txt
Use this file to discover all available pages before exploring further.
shob github manages Shob’s GitHub agent integration. Once installed, the integration wires Shob into your GitHub Actions workflows so that it can automatically respond to pull request events, issue comments, and other GitHub activity — reviewing code, suggesting fixes, and pushing commits on your behalf.
Usage
shob github install
Installs the GitHub agent configuration into your repository. Run this command from the root of a Git repository to generate the required GitHub Actions workflow files and configuration.
shob github run
Runs the GitHub agent for a specific event. This is typically invoked by the GitHub Actions workflow that shob github install generates, but you can also call it locally for testing.
Flags
A mock GitHub event payload (as a JSON string or a path to a JSON file) to simulate locally. When running inside GitHub Actions, the event is read automatically from the environment.
A GitHub Personal Access Token (
github_pat_...) used to authenticate API calls to GitHub (reading PR content, posting comments, pushing commits). When running inside GitHub Actions, the token is typically provided via ${{ secrets.GITHUB_TOKEN }} or a custom secret.Example — local test run
shob pr <number>
shob pr is a companion command that makes it easy to work on a pull request locally with the help of the Shob agent. It fetches and checks out the PR branch, optionally imports an associated Shob session from the PR description, then launches the interactive Shob TUI.
Arguments
The GitHub PR number to check out. The branch is created locally as
pr/<number>.What it does
- Runs
gh pr checkout <number> --branch pr/<number> --forceto create a local branch. - For fork PRs, adds the fork’s repository as a git remote and configures the upstream tracking branch so pushes go to the fork.
- Scans the PR description for a Shob session link (
https://opncd.ai/s/<id>). If found, imports that session withshob importand passes-s <sessionID>when launching the TUI. - Launches the Shob TUI (
shob -s <sessionID>when a session was found, or plainshob) in the current working directory.
Example
shob pr requires the GitHub CLI (gh) to be installed and authenticated. If gh is not available or not authenticated, the command exits with an error.The
shob pr command only works inside a Git repository. If no repository is found in the current directory, Shob exits with an error.