Actions36
- File Actions
- Issue Actions
- Organization Actions
- Release Actions
- Repository Actions
- Review Actions
- User Actions
- Workflow Actions
Issue → Lock
AI-generatedOverview
This node operation locks a specific issue in a GitHub repository. It is useful for scenarios where you want to prevent further comments or interactions on an issue, such as when the discussion is off-topic, too heated, resolved, or spam. For example, a project maintainer might lock an issue after it has been resolved to avoid additional comments.
Use Case Examples
- Locking an issue after it has been resolved to prevent further comments.
- Locking an issue that has become too heated to maintain a respectful discussion environment.
Properties
| Name | Meaning |
|---|---|
| Repository Owner | The owner of the GitHub repository where the issue exists. It can be selected from a list, provided as a URL, or entered by name. |
| Repository Name | The name of the GitHub repository containing the issue. It can be selected from a list, provided as a URL, or entered by name. |
| Issue Number | The number of the issue to lock in the repository. |
| Lock Reason | The reason for locking the issue, which can be Off-Topic, Too Heated, Resolved, or Spam. |
Output
JSON
json- The JSON response from GitHub API after locking the issue, typically containing the updated issue state.
Dependencies
- GitHub API accessed via GitHub App authentication using an API key credential
Troubleshooting
- Ensure the repository owner and repository name are correctly specified and accessible by the GitHub App.
- Verify that the issue number exists in the specified repository.
- Check that the GitHub App has the necessary permissions to lock issues in the repository.
- Common error: 'The issue number to lock is required' - make sure the issue number parameter is provided.
- Common error: 'Failed to authenticate with GitHub App' - verify the GitHub App credentials and permissions.
Links
- GitHub API - Lock an Issue - Official GitHub API documentation for locking an issue.