Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation deletes a label from a specified organization in Gitea, a self-hosted Git service. It is useful when you want to clean up or manage labels associated with an organization's repositories by removing outdated or unnecessary labels.

Practical examples:

  • Removing a deprecated label from an organization's issue tracker.
  • Cleaning up labels that are no longer relevant to the organization's workflow.

Properties

Name Meaning
Org The name of the organization from which the label will be deleted.
Id The numeric ID of the label to delete within the specified organization.

Output

The output JSON typically contains the response from the API after attempting to delete the label. Since this is a delete operation, the output may be minimal or empty, indicating success or failure of the deletion request.

No binary data output is expected for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea API.
  • Needs the base URL of the Gitea instance configured in the credentials.
  • Depends on the Gitea REST API endpoint /api/v1 for managing organization labels.

Troubleshooting

  • Common issues:

    • Invalid organization name or label ID can cause the deletion to fail.
    • Insufficient permissions or invalid API credentials will result in authorization errors.
    • Network connectivity problems to the Gitea server can prevent the request from completing.
  • Error messages and resolutions:

    • 404 Not Found: The specified organization or label ID does not exist. Verify the organization name and label ID.
    • 401 Unauthorized: Authentication failed. Check that the API key credential is valid and has sufficient permissions.
    • 400 Bad Request: The input parameters might be malformed. Ensure the label ID is a valid number and the organization name is correct.

Links and References

Discussion