Skip to content
GitHub

How to use GitHub

DevelopersCost: 1 credit per runTop 100 · #22Full guide

What it is for

The GitHub component lets you automate repositories from flooows: create and update issues, comment, manage branches, create gists or dispatch GitHub Actions workflows. It is often used to notify the team about new pull requests, open issues from support forms or label issues automatically.

All triggers (New Pull Request, New Issue, New Push, New Release, etc.) are instant via webhook. When you pick the Repository, a webhook is registered on it, so the connection needs permission to manage repository webhooks.

Set up the connection

Authentication type: OAuth 2.0 (sign in with your account) · Custom credentials · API key or token

  1. 1Add a GitHub step and click "Connect".
  2. 2OAuth: sign in to GitHub and authorize access to the repositories you will use.
  3. 3Personal token: in GitHub go to Settings > Developer settings > Personal access tokens and create a token (classic or fine-grained) with the required permissions, for example repo and admin:repo_hook for triggers with a classic token. Paste it into the connection.
  4. 4GitHub App: install your app on the repositories with the right permissions and enter App ID or Client ID, Installation ID and Private Key. Actions will appear under the app's bot identity.
  5. 5Save the connection with a clear name.
Connection fieldTypeRequired
App ID or Client IDTextYes
Installation IDTextYes
Private KeySecret keyYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Create Issue: choose the Repository, enter Title and Description, and add Labels or Assignees from earlier steps.
  • Create Comment on Issue: map the Issue Number from the trigger and write the Comment.
  • Update Issue: set State to closed and a State Reason to close resolved issues.
  • Create Branch: provide Source Branch and New Branch Name, useful to prepare branches from a task.
  • Trigger Workflow Dispatch: pick the Workflow, Branch or Tag and Workflow Inputs; enable Wait for Completion if the flow should wait for the result.

Tips

  • •Use Find Issue before creating one to avoid duplicates.
  • •With fine-grained tokens, grant access only to the repositories you need.
  • •Raw GraphQL Query covers advanced cases without a dedicated action.

Triggers (14)

Events that can start a flow. Expand each one to see its fields.

New Pull RequestWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New StarWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New IssueWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New PushWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New DiscussionWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New Discussion CommentWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New BranchWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New CollaboratorWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New LabelWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New MilestoneWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New ReleaseWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New CommitWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New Review RequestWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes
New MentionWebhook (paste the URL in the app)1 fields
FieldTypeRequired
RepositoryList (from your account)Yes

Actions (19)

Operations available as flow steps. Expand each one to see its fields.

Create Issue5 fields
FieldTypeRequired
RepositoryList (from your account)Yes
TitleTextYes
DescriptionLong textNo
LabelsMulti-selectNo
AssigneesMulti-selectNo
Get Issue Information2 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Issue NumberNumberYes
Create Comment on Issue3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Issue NumberNumberYes
CommentLong textYes
Lock Issue3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Issue NumberNumberYes
Lock ReasonList (from your account)No
Unlock Issue2 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Issue NumberNumberYes
Raw GraphQL Query2 fields
FieldTypeRequired
QueryLong textYes
VariablesKey / value pairsNo
Create Pull Request Review Comment6 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Pull Request NumberNumberYes
Commit SHATextYes
File PathTextYes
CommentLong textYes
PositionNumberYes
Create Commit Comment5 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Commit SHATextYes
CommentLong textYes
File PathTextNo
PositionNumberNo
Create Discussion Comment3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Discussion NumberNumberYes
CommentLong textYes
Add Labels to Issue3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
IssueList (from your account)Yes
LabelsMulti-selectYes
Create Branch3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Source BranchList (from your account)Yes
New Branch NameTextYes
Delete Branch2 fields
FieldTypeRequired
RepositoryList (from your account)Yes
BranchList (from your account)Yes
Update Issue9 fields
FieldTypeRequired
RepositoryList (from your account)Yes
IssueList (from your account)Yes
TitleTextNo
DescriptionLong textNo
StateFixed listNo
State ReasonFixed listNo
MilestoneList (from your account)No
LabelsMulti-selectNo
AssigneesMulti-selectNo
Find Branch2 fields
FieldTypeRequired
RepositoryList (from your account)Yes
Branch NameTextYes
Find Issue3 fields
FieldTypeRequired
RepositoryList (from your account)Yes
TitleTextYes
StateFixed listYes
Find User1 fields
FieldTypeRequired
UsernameTextYes
Create Gist4 fields
FieldTypeRequired
DescriptionTextNo
PublicYes / NoNo
FilenameTextYes
File ContentLong textYes
Trigger Workflow Dispatch6 fields
FieldTypeRequired
RepositoryList (from your account)Yes
WorkflowList (from your account)Yes
Branch or TagList (from your account)Yes
Workflow InputsDynamic fieldsNo
Wait for CompletionYes / NoNo
Wait SettingsDynamic fieldsNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

404 on a repository that exists.

The connection cannot access it: review the token permissions or the app installation.

The trigger never fires.

Webhook permission is missing (admin:repo_hook or Administration read & write).

Expired token.

Generate a new token or reconnect the OAuth account.

Rate limit reached.

Space out runs or add delays and retries.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps