Actions4
- Issue Actions
- Project Actions
Issue → Remove Label
AI-generatedOverview
This node performs the operation of removing a label from a specified issue in a GitHub repository. It is useful in scenarios where automated workflows need to manage issue labels, such as cleaning up labels after certain conditions are met or updating issue statuses programmatically. For example, it can be used in a CI/CD pipeline to remove a 'needs review' label once a pull request is merged.
Use Case Examples
- Removing a 'bug' label from an issue after the bug is fixed.
- Automatically removing a 'help wanted' label when an issue is assigned to a developer.
Properties
| Name | Meaning |
|---|---|
| Owner | The owner of the repository where the issue exists. |
| Repository | The repository name containing the issue. |
| Issue Number | The number identifying the specific issue to modify. |
| Label to Remove | The name of the label to be removed from the issue. |
Output
JSON
removedLabel- The label that was removed from the issue.issueNumber- The number of the issue from which the label was removed.repository- The repository containing the issue.owner- The owner of the repository.
Dependencies
- Requires OAuth2 API credentials for GitHub authentication to perform the label removal operation.
Troubleshooting
- Ensure that the OAuth2 credentials provided have sufficient permissions to modify issues in the target repository.
- Verify that the issue number and label name are correct and exist in the repository to avoid errors.
- Common error messages may include authentication failures or 'label not found' errors, which can be resolved by checking credentials and label existence respectively.
Links
- GitHub API - Remove a label from an issue - Official GitHub API documentation for removing labels from issues.