GitHub
API actions for the GitHub integration.
GitHub
Manage GitHub issues and repositories with a personal access token.
Add labels to issue
Add one or more labels to an issue.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
issue_number | number | Yes | Issue number |
labels | array | Yes | Labels to add |
Response
[
"bug",
"enhancement",
"help wanted"
]Close issue
Close an existing issue.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
issue_number | number | Yes | Issue number to close |
Response
{
"id": 789,
"number": 42,
"state": "closed",
"title": "Bug in feature X"
}Comment on issue
Add a comment to an existing issue.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
issue_number | number | Yes | Issue number |
body | string | Yes | Comment body |
Response
{
"body": "This is a comment.",
"id": 456,
"user": {
"login": "commenter"
}
}Create issue
Create a new issue in a repository.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
title | string | Yes | Issue title |
body | string | No | Issue body/description |
labels | array | No | Labels to assign to the issue |
assignees | array | No | Usernames to assign to the issue |
Response
{
"html_url": "https://github.com/user/repo/issues/43",
"id": 123,
"number": 43,
"title": "New Feature Request"
}Get issue
Get details of a specific issue.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
issue_number | number | Yes | Issue number |
Response
{
"body": "Description of the bug.",
"html_url": "https://github.com/user/repo/issues/42",
"id": 789,
"number": 42,
"state": "open",
"title": "Bug in feature X"
}List issues
List issues for a specific repository.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (username or organization) |
repo | string | Yes | Repository name |
state | string | No | Filter by state (open, closed, all) |
labels | array | No | Filter by labels (comma-separated) |
per_page | number | No | Number of results per page (max 100) |
Response
[
{
"html_url": "https://github.com/user/repo/issues/42",
"id": 789,
"number": 42,
"state": "open",
"title": "Bug in feature X"
}
]List repositories
List repositories accessible to the authenticated user.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
visibility | string | No | Filter by visibility (all, public, private) |
affiliation | string | No | Filter by affiliation (owner, collaborator, organization_member) |
per_page | number | No | Number of results per page (max 100) |
Response
[
{
"full_name": "user/my-repo",
"html_url": "https://github.com/user/my-repo",
"id": 123456,
"name": "my-repo",
"private": false
}
]