Skip to main content

Integration

GitHub

Interact with GitHub repositories or trigger workflows from GitHub events

Overview

Integrate Github into the workflow. Can get get PR details, create PR comment, get repository info, and get latest commit. Can be used in trigger mode to trigger a workflow when a PR is created, commented on, or a commit is pushed.

How to automate GitHub with AACFlow

  1. Create a free account

    Sign up at aacflow.io in seconds. No credit card required. Your workspace is ready immediately.

  2. Add a GitHub block

    Open a workflow, drag a GitHub block onto the canvas, and paste in your GitHub API key.

  3. Configure, connect, and run

    Pick the tool you need, wire in an AI agent for reasoning or data transformation, and run. Your GitHub automation is live.

Real-time triggers

Connect a GitHub webhook to AACFlow and your workflow fires the instant an event happens โ€” no polling, no delay. AACFlow receives the full event payload and makes every field available as a variable inside your workflow.

  • Event

    GitHub Issue Opened

    Trigger workflow when a new issue is opened in a GitHub repository

  • Event

    GitHub Issue Closed

    Trigger workflow when an issue is closed in a GitHub repository

  • Event

    GitHub Issue Comment

    Trigger workflow when a comment is added to an issue (not pull requests)

  • Event

    GitHub PR Opened

    Trigger workflow when a new pull request is opened in a GitHub repository

  • Event

    GitHub PR Closed

    Trigger workflow when a pull request is closed without being merged (e.g., abandoned) in a GitHub repository

  • Event

    GitHub PR Merged

    Trigger workflow when a pull request is successfully merged in a GitHub repository

  • Event

    GitHub PR Comment

    Trigger workflow when a comment is added to a pull request in a GitHub repository

  • Event

    GitHub PR Reviewed

    Trigger workflow when a pull request review is submitted, edited, or dismissed in a GitHub repository

  • Event

    GitHub Push

    Trigger workflow when code is pushed to a repository

  • Event

    GitHub Release Published

    Trigger workflow when a new release is published in a GitHub repository

  • Event

    GitHub Actions Workflow Run

    Trigger workflow when a GitHub Actions workflow run is requested, in progress, or completed

Workflow templates

Ready-to-use workflows featuring GitHub. Click any to build it instantly.

Supported tools

83 GitHub tools available in AACFlow

  • Get PR details

  • Create PR comment

  • Get repository info

    Retrieve comprehensive GitHub repository metadata including stars, forks, issues, and primary language. Supports both public and private repositories with optional authentication.

  • Get latest commit

  • Create issue comment

  • List issue comments

    Array of comment objects

  • Update comment

  • Delete comment

    Whether deletion was successful

  • List PR comments

    Array of review comment objects

  • Create pull request

  • Update pull request

  • Merge pull request

  • List pull requests

    Array of pull request objects

  • Get PR files

    Array of changed file objects

  • Close pull request

  • Request PR reviewers

  • Get file content

    Get the content of a file from a GitHub repository. Supports files up to 1MB. Content is returned decoded and human-readable.

  • Create file

    Create a new file in a GitHub repository. The file content will be automatically Base64 encoded. Supports files up to 1MB.

  • Update file

    Update an existing file in a GitHub repository. Requires the file SHA. Content will be automatically Base64 encoded. Supports files up to 1MB.

  • Delete file

    Delete a file from a GitHub repository. Requires the file SHA. This operation cannot be undone through the API.

  • Get directory tree

    Get the contents of a directory in a GitHub repository. Returns a list of files and subdirectories. Use empty path or omit to get root directory contents.

  • List branches

    List all branches in a GitHub repository. Optionally filter by protected status and control pagination.

  • Get branch

    Get detailed information about a specific branch in a GitHub repository, including commit details and protection status.

  • Create branch

    Create a new branch in a GitHub repository by creating a git reference pointing to a specific commit SHA.

  • Delete branch

    Delete a branch from a GitHub repository by removing its git reference. Protected branches cannot be deleted.

  • Get branch protection

    Get the branch protection rules for a specific branch, including status checks, review requirements, and restrictions.

  • Update branch protection

    Update branch protection rules for a specific branch, including status checks, review requirements, admin enforcement, and push restrictions.

  • Create issue

  • Update issue

  • List issues

    List issues in a GitHub repository. Note: This includes pull requests as PRs are considered issues in GitHub

  • Get issue

  • Close issue

  • Add issue labels

  • Remove issue label

  • Add issue assignees

  • Create release

    Create a new release for a GitHub repository. Specify tag name, target commit, title, description, and whether it should be a draft or prerelease.

  • Update release

    Update an existing GitHub release. Modify tag name, target commit, title, description, draft status, or prerelease status.

  • List releases

    List all releases for a GitHub repository. Returns release information including tags, names, and download URLs.

  • Get release

    Get detailed information about a specific GitHub release by ID. Returns release metadata including assets and download URLs.

  • Delete release

    Delete a GitHub release by ID. This permanently removes the release but does not delete the associated Git tag.

  • List workflows

    List all workflows in a GitHub repository. Returns workflow details including ID, name, path, state, and badge URL.

  • Get workflow

    Get details of a specific GitHub Actions workflow by ID or filename. Returns workflow information including name, path, state, and badge URL.

  • Trigger workflow

    Trigger a workflow dispatch event for a GitHub Actions workflow. The workflow must have a workflow_dispatch trigger configured. Returns 204 No Content on success.

  • List workflow runs

    List workflow runs for a repository. Supports filtering by actor, branch, event, and status. Returns run details including status, conclusion, and links.

  • Get workflow run

    Get detailed information about a specific workflow run by ID. Returns status, conclusion, timing, and links to the run.

  • Cancel workflow run

    Cancel a workflow run. Returns 202 Accepted if cancellation is initiated, or 409 Conflict if the run cannot be cancelled (already completed).

  • Rerun workflow

    Rerun a workflow run. Optionally enable debug logging for the rerun. Returns 201 Created on success.

  • List projects

    List GitHub Projects V2 for an organization or user. Returns up to 20 projects with their details including ID, title, number, URL, and status.

  • Get project

    Get detailed information about a specific GitHub Project V2 by its number. Returns project details including ID, title, description, URL, and status.

  • Create project

    Create a new GitHub Project V2. Requires the owner Node ID (not login name). Returns the created project with ID, title, and URL.

  • Update project

    Update an existing GitHub Project V2. Can update title, description, visibility (public), or status (closed). Requires the project Node ID.

  • Delete project

    Delete a GitHub Project V2. This action is permanent and cannot be undone. Requires the project Node ID.

  • Search code

    Search for code across GitHub repositories. Use qualifiers like repo:owner/name, language:js, path:src, extension:py

  • Search commits

    Search for commits across GitHub. Use qualifiers like repo:owner/name, author:user, committer:user, author-date:>2023-01-01

  • Search issues

    Search for issues and pull requests across GitHub. Use qualifiers like repo:owner/name, is:issue, is:pr, state:open, label:bug, author:user

  • Search repositories

    Search for repositories across GitHub. Use qualifiers like language:python, stars:>1000, topic:react, user:owner, org:name

  • Search users

    Search for users and organizations on GitHub. Use qualifiers like type:user, type:org, followers:>1000, repos:>10, location:city

  • List commits

    List commits in a repository with optional filtering by SHA, path, author, committer, or date range

  • Get commit

  • Compare commits

    Compare two commits or branches to see the diff, commits between them, and changed files

  • Create gist

    Gist ID

  • Get gist

  • List gists

  • Update gist

    Update a gist description or files. To delete a file, set its value to null in files object

  • Delete gist

    Whether deletion succeeded

  • Fork gist

    New gist ID

  • Star gist

    Whether starring succeeded

  • Unstar gist

    Whether unstarring succeeded

  • Fork repository

    Repository ID

  • List forks

    Array of fork repository objects from GitHub API

  • Create milestone

  • Get milestone

  • List milestones

  • Update milestone

    Milestone ID

  • Delete milestone

    Whether deletion succeeded

  • Add issue reaction

  • Remove issue reaction

    Whether deletion succeeded

  • Add comment reaction

  • Remove comment reaction

    Whether deletion succeeded

  • Star repository

    Whether starring succeeded

  • Unstar repository

    Whether unstarring succeeded

  • Check if starred

    Whether you have starred the repo

  • List stargazers

    Array of user objects from GitHub API

Frequently asked questions

AACFlow's GitHub integration lets you build AI-powered workflows that automate tasks in GitHub without writing code. Interact with GitHub or trigger workflows from GitHub events You can connect GitHub to hundreds of other services in the same workflow โ€” from CRMs and spreadsheets to messaging tools and databases.

AACFlow

Start automating GitHub today

Build your first AI workflow with GitHub in minutes. Connect to every tool your team uses. Free to start โ€” no credit card required.

Build for free โ†’