Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation deletes a milestone from a specified repository in Gitea, a self-hosted Git service. It is useful when you want to remove milestones that are no longer relevant or were created by mistake. For example, if a project milestone has been completed or canceled, this operation can clean up the repository by deleting that milestone.

Properties

Name Meaning
Owner The owner of the repository where the milestone exists (usually a username or organization).
Repo The name of the repository containing the milestone to delete.
Id The identifier of the milestone to delete. This can be either the milestone's ID or its name if the ID is not available.

Output

The output JSON will typically contain the response from the Gitea API after attempting to delete the milestone. Since this is a delete operation, the output may be an empty object or a confirmation message indicating success. No binary data is expected from this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node must be configured with the base URL of the Gitea server.
  • The user must have appropriate permissions on the repository to delete milestones.

Troubleshooting

  • Common issues:

    • Incorrect or missing repository owner or name can cause the milestone not to be found.
    • Providing an invalid milestone ID or name will result in failure to delete.
    • Insufficient permissions for the authenticated user will prevent deletion.
    • Network or authentication errors if the API key or URL is misconfigured.
  • Error messages and resolutions:

    • 404 Not Found: Check that the owner, repo, and milestone ID/name are correct.
    • 401 Unauthorized: Verify that the API key credential is valid and has necessary scopes.
    • 403 Forbidden: Ensure the user has permission to delete milestones in the repository.
    • 400 Bad Request: Confirm that the milestone ID or name is properly formatted.

Links and References

Discussion