Working with GitHub and GitLab

You can connect CodeBot to a project-management account, such as GitHub or GitLab, so it can help with issues, pull requests, releases, labels, milestones, CI status, and other project-tracking work.

This is useful when you want CodeBot to move from "I found a problem" to "track this work", or when you want it to answer questions using the same issue and pull-request context your team uses.

Connect a Project

GitHub and GitLab accounts can be connected via the Account Manager sheet.

Before CodeBot can work with provider-backed items, connect the current solution or workspace to the right account and project. CodeBot can help you list configured accounts, choose the right repository or project, and remember that connection for the current work context.

Typical prompts:

  • "Connect this workspace to the GitHub repository for this project."
  • "Which GitLab projects can this account see?"
  • "Use the connected GitHub project for follow-up items from this review."

Connecting a project can require approval, especially when CodeBot is associating the current workspace with an external account.

Find Issues, Pull Requests, and Project Items

Once connected, CodeBot can look up existing issues, pull requests, labels, milestones, boards, CI runs, releases, and tags. You can ask about specific IDs, or ask CodeBot to search and summarize matching work.

Typical prompts:

  • "Show me the open issues about CodeBot image generation."
  • "Summarize PR #42 and tell me what changed."
  • "Find recent failed CI runs for this repository."
  • "List labels that look relevant for this bug."

Use this when you want CodeBot to answer from provider data instead of only from local files.

Create and Update Issues

CodeBot can turn findings, bugs, design notes, or follow-up work into provider-backed issues. It can also update existing issues, add comments, change state, or adjust fields supported by the connected provider.

Typical prompts:

  • "Create a GitHub issue for this crash with the stack trace and repro steps."
  • "Add a comment to issue #123 with what we just learned."
  • "Close this issue as fixed and mention the commit."
  • "Update the title and labels to match the actual problem."

Creating or changing external issues requires approval. CodeBot should show what it intends to write before it sends the change.

Create and Update Pull Requests

When the provider supports it, CodeBot can create or update pull requests or merge requests, and add review comments or status updates.

Typical prompts:

  • "Create a draft pull request from this branch."
  • "Update the PR description with the test results."
  • "Add a comment to the merge request explaining the remaining risk."

Pull-request creation and updates require approval because they change external project state.