GitHub
Read GitHub repositories, issues, releases and users, and open issues.
Get repository
Reads a repository: description, stars, forks and open issues.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Owner | Text | Yes | The user or organization that owns the repository, for example octocat. Maximum length: 39 characters. |
| Repository | Text | Yes | The name of the repository, for example hello-world. Maximum length: 100 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Found | Yes/No | Whether the repository exists and the token can see it. When not, everything else is empty. |
| Full name | Text | owner/name of the repository. May be empty. |
| Description | Text | The description. May be empty. |
| Link | URL | The repository on GitHub. May be empty. |
| Stars | Whole number | How many stars it has. May be empty. |
| Forks | Whole number | How many forks it has. May be empty. |
| Open issues | Whole number | Open issues and pull requests together. May be empty. |
| Language | Text | The main programming language. May be empty. |
| Default branch | Text | The default branch, for example main. May be empty. |
| Archived | Yes/No | Whether the repository is archived. May be empty. |
| Last push | Date and time | When code was last pushed. May be empty. |
Get issues
Lists issues of a repository, newest first. Pull requests are in the list too; they have a pull request link.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Owner | Text | Yes | The user or organization that owns the repository, for example octocat. Maximum length: 39 characters. |
| Repository | Text | Yes | The name of the repository, for example hello-world. Maximum length: 100 characters. |
| State | Text | No | open, closed or all. Empty: open. Maximum length: 6 characters. Default: open. |
| How many | Whole number | No | How many to get, 1 to 100. Empty: 10. Value: 1 to 100. Default: 10. |
| Page | Whole number | No | Which page of the list, starting at 1. Empty: 1. Minimum: 1. Default: 1. |
Outputs
| Name | Type | Details |
|---|---|---|
| Issues | List of GitHub issue | The issues, newest first. |
Get releases
Lists releases of a repository, newest first.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Owner | Text | Yes | The user or organization that owns the repository, for example octocat. Maximum length: 39 characters. |
| Repository | Text | Yes | The name of the repository, for example hello-world. Maximum length: 100 characters. |
| How many | Whole number | No | How many to get, 1 to 100. Empty: 10. Value: 1 to 100. Default: 10. |
| Page | Whole number | No | Which page of the list, starting at 1. Empty: 1. Minimum: 1. Default: 1. |
Outputs
| Name | Type | Details |
|---|---|---|
| Releases | List of GitHub release | The releases, newest first. |
Get latest release
Reads the newest published release that is not a pre-release or draft.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Owner | Text | Yes | The user or organization that owns the repository, for example octocat. Maximum length: 39 characters. |
| Repository | Text | Yes | The name of the repository, for example hello-world. Maximum length: 100 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Found | Yes/No | Whether there is such a release. When not, the release is empty. |
| Release | GitHub release | The release. May be empty. |
Open issue
Opens a new issue in a repository. The token needs write access to Issues.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Owner | Text | Yes | The user or organization that owns the repository, for example octocat. Maximum length: 39 characters. |
| Repository | Text | Yes | The name of the repository, for example hello-world. Maximum length: 100 characters. |
| Title | Text | Yes | The title of the issue. Maximum length: 256 characters. |
| Text | Text | No | The text of the issue, as Markdown. Maximum length: 60000 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Number | Whole number | The number of the new issue. |
| Link | URL | The new issue on GitHub. |
Get GitHub user
Reads a GitHub user or organization by its username.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Connection | Text | No | The GitHub connection from the Integrations page that this action uses. Maximum length: 64 characters. |
| Username | Text | Yes | The GitHub username, for example octocat. Maximum length: 39 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Found | Yes/No | Whether the user exists. When not, everything else is empty. |
| Username | Text | The username. May be empty. |
| Name | Text | The display name, when set. May be empty. |
| Bio | Text | The profile text, when set. May be empty. |
| Type | Text | User or Organization. May be empty. |
| Avatar | URL | The profile picture. May be empty. |
| Link | URL | The profile on GitHub. May be empty. |
| Public repositories | Whole number | How many public repositories they have. May be empty. |
| Followers | Whole number | How many followers they have. May be empty. |
| Created at | Date and time | When the account was created. May be empty. |
Need more help?
Can't find what you're looking for? Our team is happy to help.