Updates an existing issue in a GitHub repository (title, body, state, assignees, labels, and milestone).
For authentication setup, see GitHub issue actions.
The following inputs are available for this action.
Input Field | Optionality | Type | Description | Example |
|---|---|---|---|---|
token | Required | String | GitHub Personal Access Token (fine-grained or classic) stored as a secret. Fine-grained PATs require Issues: Read and write permission. Classic PATs require repo scope. |
|
owner | Required | String | The account owner of the repository (user or organization login). Case-insensitive. |
|
repo | Required | String | Repository name without the .git suffix. Case-insensitive. |
|
issueNumber | Required | Int | The number that identifies the issue. |
|
title | Optional | String | The title of the issue. |
|
body | Optional | String | Issue body in GitHub-flavored Markdown. Omitted from the request if empty. |
|
state | Optional | String | Issue state. Use to close or reopen an issue. Allowed values: |
|
state_reason | Optional | String | The reason for the state change. The API ignores this field unless you change |
|
duplicate_issue_id | Optional | Int | The ID of the issue to mark as the canonical duplicate. Only used when |
|
assignees | Optional | List | GitHub usernames to assign. Requires push access on the token. The GitHub API silently drops users without push access. |
|
labels | Optional | List | Labels to attach. Requires push access on the token. The API auto-creates unknown labels if you have permission. Otherwise, the API rejects them. |
|
milestone | Optional | Int | The milestone number (integer ID, not the title). Requires push access on the token. The milestone must already exist in the repository. |
|
type | Optional | String | The name of the issue type to associate with this issue (for example, Bug, Task, Feature). Requires push access. Issue types must be configured at the repository or organization level before use. |
|
issueFieldValues | Optional | List | Issue field values for GitHub Projects v2 custom fields. Each object must include |
|
selectors | Optional | List | JQ selectors to extract values from the response. |
|
This action returns the following outputs.
Output Field | Type | Example |
|---|---|---|
response | Object | |
success | Boolean |
|
errorMessage | String | Contains the GitHub API error response body. |
Workflow example |
|---|
|