Jaidu integrates with GitHub to let you create pull requests directly from workspaces. This integration relies on the GitHub CLI (gh) being installed and authenticated on the registered host that owns the workspace.

Setup

There is no need to configure GitHub in the Jaidu settings manually. The integration works when GitHub CLI is available on the selected host.

Automatic Setup

When you attempt to create your first Pull Request, Jaidu will check if the GitHub CLI is available. If it’s not found or not authenticated, you will be guided through the setup process:
  1. On macOS: You will see a dialog offering to install the GitHub CLI via Homebrew automatically.
  2. On Windows/Linux: You will be provided with instructions to install the CLI manually.

Manual Setup

You can also set up the integration manually in your terminal before using Jaidu:
  1. Install GitHub CLI: Follow the official installation instructions for your host operating system.
  2. Authenticate: Run the following command in a terminal on the host and follow the prompts:
    gh auth login
    
    Select GitHub.com, choose the remote protocol used by your repository, and complete the login flow.

Creating a Pull Request

Once the GitHub CLI is ready, you can create pull requests directly from a workspace:
  1. Open a workspace that has changes you want to merge.
  2. Click the Create PR button.
  3. Review the pre-filled title, description, and base branch.
  4. Click Create to open the PR on GitHub.
If the operation is successful, Jaidu stores a link to the new pull request with the workspace.