Locks a GitHub issue, restricting who can add new comments.
For authentication setup, see GitHub issue actions.
The following inputs are available for this action.
Input | 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. |
|
lockReason | Optional. String | The reason for locking the issue. The lock will fail if you use a value other than the allowed values. Allowed values: |
|
selectors | Optional. List | JQ selectors to extract values from the response. |
This action returns the following outputs.
Output | Type | Example |
|---|---|---|
response | Empty | Empty response body (HTTP 204 No Content). |
success | Boolean |
|
errorMessage | String | Contains the GitHub API error response body. |
Workflow example |
|---|
|