Saltar al contenido principal

GitHub Toolkit

The GitHub Toolkit is a workflow node. Its tools include List Repositories, Get Repository, List Issues, and Create Issue, plus 16 more listed below. Connect a GitHub account before you use any of these tools. Type @ in a field when the value should come from an earlier step.

Authentication​

Every GitHub tool needs a connected account before it can run. On the node, open GitHub Account.

  1. Choose Use my GitHub account or Use team account.
  2. If no personal account is connected, click Connect GitHub Account and finish sign-in.
  3. For a team account, choose Use team account and pick one from Team account. The list shows accounts already connected for the project.

Tools​

List Repositories​

Lists repositories.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
VisibilityNoRepository visibility: 'all', 'public', or 'private'. Default is all. Type @ to select a variable.
SortNoSort by: 'created', 'updated', 'pushed', 'full_name'. Default is updated. Type @ to select a variable.
DirectionNoSort direction: 'asc' or 'desc'. Default is desc. Type @ to select a variable.
Per PageNoNumber of repositories per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Repository​

Retrieves repository.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.

List Issues​

Lists issues.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
StateNoIssue state: 'open', 'closed', or 'all'. Default is open. Type @ to select a variable.
LabelsNoComma-separated list of label names. Default is null. Type @ to select a variable.
AssigneeNoUsername of assignee. Default is null. Type @ to select a variable.
Per PageNoNumber of issues per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Create Issue​

Creates issue.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
TitleYesIssue title. Type @ to select a variable.
BodyNoIssue description/body. Default is null. Type @ to select a variable.
LabelsNoList of label names. Default is null.
AssigneesNoList of usernames to assign. Default is null.

List Pull Requests​

Lists pull requests.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
StateNoPR state: 'open', 'closed', or 'all'. Default is open. Type @ to select a variable.
BaseNoBase branch name. Default is null. Type @ to select a variable.
Created AfterNoFilter PRs created on or after this date (ISO format: YYYY-MM-DD). Uses GitHub Search API when set. Default is null. Type @ to select a variable.
Created BeforeNoFilter PRs created on or before this date (ISO format: YYYY-MM-DD). Uses GitHub Search API when set. Default is null. Type @ to select a variable.
Updated AfterNoFilter PRs updated on or after this date (ISO format: YYYY-MM-DD). Uses GitHub Search API when set. Default is null. Type @ to select a variable.
Updated BeforeNoFilter PRs updated on or before this date (ISO format: YYYY-MM-DD). Uses GitHub Search API when set. Default is null. Type @ to select a variable.
SortNoSort by: 'created', 'updated', 'popularity'. Default is created. Type @ to select a variable.
DirectionNoSort direction: 'asc' or 'desc'. Default is desc. Type @ to select a variable.
Per PageNoNumber of PRs per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Create Pull Request​

Creates pull request.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
TitleYesPull request title. Type @ to select a variable.
HeadYesBranch containing changes. Type @ to select a variable.
BaseYesBranch to merge into. Type @ to select a variable.
BodyNoPull request description. Default is null. Type @ to select a variable.

Get File Content​

Retrieves file content.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
PathYesFile path in the repository. Type @ to select a variable.
RefNoBranch name, tag, or commit SHA. Default is null. Type @ to select a variable.

List Branches​

Lists branches.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Per PageNoNumber of branches per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Search Repositories​

Searches repositories.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
QueryYesSearch query. Type @ to select a variable.
SortNoSort by: 'stars', 'forks', 'help-wanted-issues', 'updated'. Default is best-match. Type @ to select a variable.
OrderNoSort order: 'desc' or 'asc'. Default is desc. Type @ to select a variable.
Per PageNoNumber of repositories per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Commit History​

Retrieves commit history.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
ShaNoSHA or branch to start listing commits from (defaults to repository's default branch). Default is null. Type @ to select a variable.
PathNoOnly commits containing this file path will be returned. Default is null. Type @ to select a variable.
AuthorNoGitHub login or email address to filter commits by author. Default is null. Type @ to select a variable.
SinceNoOnly show commits after this date (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ). Default is null. Type @ to select a variable.
UntilNoOnly show commits before this date (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ). Default is null. Type @ to select a variable.
Per PageNoNumber of commits per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Pull Request​

Retrieves pull request.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.

Get Pull Request Files​

Retrieves pull request files.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
Per PageNoNumber of files per page (1-300). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Pull Request Diff​

Retrieves pull request diff.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.

Get Pull Request Commits​

Retrieves pull request commits.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
Per PageNoNumber of commits per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Labels​

Retrieves labels.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Per PageNoNumber of labels per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Assign Pull Request Labels​

Runs the assign pull request labels tool.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
LabelsYesList of label names to assign to the pull request.

Get Pull Request Reviews​

Retrieves pull request reviews.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
Per PageNoNumber of reviews per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Get Pull Request Comments​

Retrieves pull request comments.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
Per PageNoNumber of comments per page (1-100). Default is 30.
PageNoPage number for pagination. Default is 1.

Add Pull Request Comment​

Adds pull request comment.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
BodyYesThe comment text to post on the pull request. Type @ to select a variable.

Create Pull Request Review​

Creates pull request review.

FieldRequiredDescription
GitHub AccountYesSelect your personal or team GitHub account.
OwnerYesRepository owner's username or organization name. Type @ to select a variable.
RepoYesRepository name. Type @ to select a variable.
Pull NumberYesPull request number.
BodyYesThe body text of the review. Type @ to select a variable.
EventYesThe review action: 'APPROVE', 'REQUEST_CHANGES', or 'COMMENT'. Type @ to select a variable.
CommentsNoJSON string of line-level comments, each with 'path', 'position', and 'body' keys. Default is null. Type @ to select a variable.

Agents can use this integration from chat. See GitHub.

See all integrations on the toolkits overview.