GitHub Action

Drives a GitHub repository from a flow: issues, pull requests, comments, labels and releases. Fourteen operations, so “a customer reported a bug” can become an issue with the right labels and an assignee without anyone opening a browser.

Setup

Either a GitHub App installation or a personal access token. The App is the better default for anything shared: its permissions are scoped per repository and it does not stop working when the person who created it leaves.


Mode — action or AI toolkit

The Mode selector decides who drives the node. In Action mode you pick one operation and fill its fields, and the node does that every time it runs. In AI toolkit mode the operations become tools an AI Node can call, and the model chooses which one and with what arguments.

Toolkit mode is opt-in per node, and it is what makes this node show up in an AI Node's tool picker. A node left in Action mode is invisible to agents.

Operations

The Operation dropdown decides what the node does and which fields appear under it. These are the exact values the API validates against:

ValueIn the dropdownWhat it does
createIssueCreate issueOpens a new issue in the repository.
updateIssueUpdate issueChanges title, body, state, labels or assignees.
getIssueGet issueReads one issue by its number.
commentIssueComment on issueAdds a comment to an issue or a pull request.
listIssuesList issuesThe repository's issues, filterable. Returns a list.
createPullRequestCreate pull requestOpens a pull request from one branch against another.
getPullRequestGet pull requestReads one pull request by its number, with its merge state.
mergePullRequestMerge pull requestMerges an open pull request.
listPullRequestsList pull requestsThe repository's pull requests, filterable. Returns a list.
getFileGet fileReads a file from the repository, already decoded.
createOrUpdateFileCreate or update fileWrites a file and commits the change.
createBranchCreate branchCreates a branch from another one.
dispatchWorkflowRun workflowTriggers a GitHub Actions workflow.
searchIssuesSearch issues and PRsSearches all of GitHub with its own query syntax. Returns a list.

Gotchas

  • A pull request is an issue with extra fields. Comment and label operations work on both, and the number space is shared — issue 42 and PR 42 cannot both exist.
  • Labels must already exist on the repository. Adding an unknown label does not create it.
  • The token's permissions are the ceiling. A PAT without repo scope reads public data and fails on write with a 403 that mentions permissions, not authentication.
  • List operations return iterable payloads — feed one to a Loop to act per issue.