The Glean GitHub action allows you to create agents that perform key GitHub operations. This integration connects company knowledge and operational tasks, bringing AI-powered review, documentation, and workflow automation into the developer experience.

You can use GitHub actions to do the following:

  • Create a PR
  • Create a branch
  • Edit code
  • Read a file from a branch
  • Fetch logs for a workflow
  • Find a diff for a PR

Usage examples

Using these GitHub actions, you can automate numerous tasks, such as:

  • Creating a pull request with a well-summarized, automatically generated description to streamline code reviews.
  • Creating a new feature branch directly from a conversation or workflow, reducing manual setup.
  • Editing code files based on AI-suggested changes without directly interacting with the GitHub UI.
  • Reading files from a specific branch to check implementation details or review changes in context.
  • Fetching workflow logs to debug CI failures or deployment issues quickly via chat.
  • Finding the diff for a pull request to understand exactly what changes have been made before merging.

Configuration

Prerequisites

  • A GitHub App must be created for the organization, with appropriate app and webhook/authorization URLs (handled by Glean or as guided by the setup documents).
  • The GitHub App must be installed and connected to Glean, often requiring a GitHub Copilot subscription to surface features in the IDE or web UI.
  1. Click on Add Action and select GitHub Actions.
  2. Select the GitHub datasource you want to link these actions to, this is the instance where your GitHub content resides.
  3. Set up authentication.

The Glean GitHub action allows you to create agents that perform key GitHub operations. This integration connects company knowledge and operational tasks, bringing AI-powered review, documentation, and workflow automation into the developer experience.

You can use GitHub actions to do the following:

  • Create a PR
  • Create a branch
  • Edit code
  • Read a file from a branch
  • Fetch logs for a workflow
  • Find a diff for a PR

Usage examples

Using these GitHub actions, you can automate numerous tasks, such as:

  • Creating a pull request with a well-summarized, automatically generated description to streamline code reviews.
  • Creating a new feature branch directly from a conversation or workflow, reducing manual setup.
  • Editing code files based on AI-suggested changes without directly interacting with the GitHub UI.
  • Reading files from a specific branch to check implementation details or review changes in context.
  • Fetching workflow logs to debug CI failures or deployment issues quickly via chat.
  • Finding the diff for a pull request to understand exactly what changes have been made before merging.

Configuration

Prerequisites

  • A GitHub App must be created for the organization, with appropriate app and webhook/authorization URLs (handled by Glean or as guided by the setup documents).
  • The GitHub App must be installed and connected to Glean, often requiring a GitHub Copilot subscription to surface features in the IDE or web UI.
  1. Click on Add Action and select GitHub Actions.
  2. Select the GitHub datasource you want to link these actions to, this is the instance where your GitHub content resides.
  3. Set up authentication.