Skip to main content
Ona Agent includes built-in tools for GitHub and GitLab. Agents can create pull requests, manage issues, add code review comments, and search repositories - no additional configuration required beyond connecting your source control provider. Supported providers: GitHub (including Enterprise), GitLab (including self-hosted)
Bitbucket and Azure DevOps support repository access but agent tools aren’t yet available.

Capabilities

  • Create, update, and read pull requests / merge requests
  • Add general and inline code review comments
  • Create and manage issues
  • Search issues and pull requests
Example prompts:
  • “Create a pull request for my changes titled ‘Add input validation’”
  • “Review PR #42 and add inline comments for issues you find”
  • “Create an issue for refactoring the authentication module”
  • “Search for open issues related to ‘timeout errors‘“

Organization controls

SCM tools settings showing options to enable for all members, specific groups, or disabled
SCM tools are enabled by default. Administrators can configure access in Settings > Agents:
  • Enabled for all members (default)
  • Enabled for specific group - gradual rollout or team restrictions
  • Disabled - agents use git commands only, no PR/issue tools
When disabled, agents can still clone, commit, and push - they just can’t interact with the GitHub/GitLab API.

Provider differences

FeatureGitHubGitLab
Inline commentsDirect commentsDiscussion threads
Draft PRsSupportedNot supported
AssigneesUsername-basedRequires user IDs

Prerequisites

  1. Configure source control on your runner
  2. Authorize via OAuth or PAT when creating your first environment
Required scopes:
  • GitHub: repo, read:user, workflow (if editing Actions files)
  • GitLab: api, read_repository, read_user

Limitations

  • Cannot merge pull requests
  • Cannot sync PR branches with base branch
  • Cannot approve or request changes on PRs

Troubleshooting

Tools not available: Verify source control is configured and you’ve authorized access. Restart your environment to reload tools. Permission denied: Check token scopes and repository permissions. For GitHub organizations, ensure OAuth app access is granted.