Skip to main content
GitHub Logo
GitHub actions

Repositories, issues, pull requests, and code review

ReadyDeveloper Tools

Overview

The GitHub action enables AI agents to interact with your GitHub account and organizations. Agents can create and update repositories, manage issues, open and review pull requests, add comments, and merge branches, all through natural language. This action is ideal for automating engineering workflows and bringing code review into conversational AI experiences.

Key Capabilities

  • Repository management: Create, inspect, and list repositories
  • Issue tracking: Create, update, close, comment on issues
  • Pull requests: Open, list, merge, and inspect PR commits and file diffs
  • Code review: Leave line-level review comments and submit approvals or change requests
  • Search: Find repositories by keyword, language, or stars
  • User and org lookup: Read profile data for users and organizations

Available Tools

Parameters marked ? are optional.

Repositories

Issues

Pull Requests

Code Review


Configuration Guide

Step 1: Open GitHub Developer settings

  1. Sign in to GitHub.
  2. Click your profile picture in the top-right corner and choose Settings.
  3. In the left sidebar, scroll down and click Developer settings.
  4. Select OAuth Apps, then click New OAuth App (or Register a new application if this is your first one).
Create a new GitHub OAuth App
To create an OAuth App under a GitHub organization instead of your personal account, open the organization’s Settings → Developer settings → OAuth Apps. You need admin access to the organization.

Step 2: Get the Redirect URI from PipesHub

Before filling in the GitHub form, copy the Redirect URI from PipesHub so the values match exactly.
  1. In PipesHub, go to Workspace settings → Actions.
  2. Find GitHub in the list and click Set up.
  3. Copy the Redirect URI shown in the dialog.
GitHub action configuration drawer with the Redirect URIGitHub action configuration drawer with the Redirect URI

Step 3: Register the OAuth App

In the GitHub Register a new OAuth application form:Click Register application.
Register a new OAuth application on GitHub
GitHub OAuth Apps support only one Authorization callback URL. If you need the action to work across multiple PipesHub environments, create a separate OAuth App for each.

Step 4: Copy Client ID and generate a Client Secret

After registration, GitHub shows the OAuth App settings page with your Client ID visible.
  1. Copy the Client ID. It is used as Client ID in PipesHub.
  2. Under Client secrets, click Generate a new client secret.
  3. Copy the secret immediately. It is used as Client Secret in PipesHub.
Copy GitHub Client ID and generate Client Secret
The Client Secret is shown only once. Copy it before leaving the page. You cannot view it again later, only regenerate it.

Step 5: Required scopes

PipesHub requests the following scopes during the OAuth consent flow. You don’t configure them on the GitHub side. They are requested automatically when the user authorizes.
If your GitHub organization has OAuth App access restrictions enabled (the default for new orgs), members may need to request approval from an organization owner before the action can access org-owned repositories.

Step 6: Configure the GitHub action in PipesHub

  1. In PipesHub, return to Workspace settings → Actions.
  2. Find GitHub and click Set up to open its setup dialog.
  3. Confirm the Redirect URI in the dialog matches the Authorization callback URL you registered in GitHub in Step 3.
  4. Enter an OAuth app name (or pick a saved app), paste your Client ID and Client Secret, then click Create.
Enter GitHub Client ID and Secret in PipesHubEnter GitHub Client ID and Secret in PipesHub

Step 7: Authenticate the GitHub action

Authentication uses the same OAuth flow in either location:
  • Admins can authenticate the shared instance directly under Workspace settings → Actions.
  • Users can authenticate their own personal instance under Your actions (in the Personal section of the sidebar).
  1. Open the GitHub instance (in Actions or Your actions), click Authenticate, then Authenticate with OAuth.
  2. A popup opens to GitHub’s authorization page. Review the requested scopes and click Authorize.
  3. The popup closes and the GitHub instance shows Authenticated.
Authenticate GitHub action with OAuthAuthenticate GitHub action with OAuth
GitHub authorization: review and authorize

Step 8: Add GitHub to an agent

  1. In the chat sidebar, click + next to My agents.
  2. Name the agent and click Create agent. The Agent Builder opens.
  3. In the palette, open Tools and drag the GitHub action onto the canvas. It connects to the Agent node’s Toolsets input. Click Save changes.
Agent builder with the GitHub action on the canvas, connected to the agent's Toolsets inputAgent builder with the GitHub action on the canvas, connected to the agent's Toolsets input

FAQ

Example: Use the GitHub Connector to search past issues and PRs across your repos. Use the GitHub action to let agents file bugs, merge PRs, or post review comments on your behalf.
PipesHub’s GitHub action uses an OAuth App because the integration acts on behalf of a user. GitHub Apps offer finer-grained per-repository permissions and short-lived tokens, but require installation on each repo or organization. For most teams, the OAuth App flow is simpler to set up.
GitHub organizations can restrict which OAuth Apps access their data. If authorization fails with an organization access warning, ask an organization owner to approve the app under Organization Settings → Third-party access → OAuth app policy.

Usage Tips

How do I create an issue?
Ask your agent to “open an issue in acme/widgets titled ‘Login page 500 error’ and assign it to alice”. The agent fills in title, body, assignees, and labels.
How do I review a pull request?
Ask to “review PR #57 and approve it with a comment” or “request changes on PR #91 saying the tests need updating”. The agent submits the review in the right state.
How do I leave a line-level comment?
Ask to “comment on line 42 of src/auth.py in PR #88 saying this should be a constant”. The agent attaches the comment to the specific file and line.