Runs one operation against a GitHub repository. In the action picker it is GitHub, under Integration Actions. One action, 22 operations: pick the connection and repository, choose the operation, and the form asks for what that operation needs.
Fields
| Field | Required | Description |
|---|
| Connection | Yes | The GitHub connection to use. |
| Repository | Yes | The repository to act on, as organization/repository. |
| Operation | Yes | What to do. Choosing one reveals its own inputs. |
Most text inputs on an operation accept variables, so an operation can work on the trigger's data and earlier results.
Pull request operations
| Operation | What it takes |
|---|
| Create Pull Request | A title, the head and base branches, an optional body, and whether it opens as a draft or lets maintainers push to it. |
| Get Pull Request | A pull request number. |
| Update Pull Request | A pull request number, plus the title, body, base branch, or state to change. |
| Merge Pull Request | A pull request number, an optional commit message, the merge method, and an optional expected head commit so the merge is refused if the branch moved. |
| Submit Pull Request Review | A pull request number, the review to submit—approve, request changes, or comment—and an optional body. |
| Add Reviewers | A pull request number and the reviewers to request. |
Issue operations
| Operation | What it takes |
|---|
| Create Issue | A title, an optional body, assignees, and labels. |
| Get Issue | An issue number. |
| Update Issue | An issue number, plus the title, body, or state to change. |
Operations on both
| Operation | What it takes |
|---|
| Add Comment | An issue or pull request number and the comment body. |
| Modify Assignees | An issue or pull request number, whether to add, remove, or replace, and the assignees. |
| Modify Labels | An issue or pull request number, whether to add, remove, or replace, and the labels. |
Branch operations
| Operation | What it takes |
|---|
| Create Branch | The branch name and the commit to branch from. |
| Get Branch | A branch name. |
| List Branches | Nothing beyond the repository. |
| Delete Branch | A branch name. |
File and commit operations
| Operation | What it takes |
|---|
| Get File Contents | A path, and optionally the branch, tag, or commit to read it at. |
| Create Or Update File | A path, the contents, a commit message, a branch, and—when replacing an existing file—the commit it is being replaced from. |
| Create Commit | A branch, a commit message, and a list of file changes. |
| Create Commit Status | A commit, the state to report, and an optional description, target URL, and context. |
Release and workflow operations
| Operation | What it takes |
|---|
| Create Release | A tag, an optional name and body, the commit to target, and whether it is a draft or a prerelease. |
| Trigger Workflow | The workflow to run, the branch or tag to run it on, and any inputs the workflow declares. |
Output
The result of the operation—for example the created or fetched pull request, issue, branch, file, or commit. Some operations, such as a merge or a label change, return no payload.