Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation deletes a wiki page from a specified repository in Gitea, a self-hosted Git service. It is useful when you want to programmatically remove outdated or incorrect documentation pages from your project's wiki hosted on Gitea.

Common scenarios include:

  • Automating cleanup of wiki pages during CI/CD pipelines.
  • Managing documentation lifecycle by removing deprecated pages.
  • Integrating wiki management into broader project automation workflows.

Example: Automatically delete a wiki page named "OldDesign" from the repository "ProjectX" owned by user "alice" after a major redesign.

Properties

Name Meaning
Owner The username or organization that owns the repository.
Repo The name of the repository containing the wiki page.
Page Name The exact name of the wiki page to delete.

Output

The node outputs JSON data representing the response from the Gitea API after attempting to delete the wiki page. Typically, this will confirm successful deletion or provide error details if the operation failed.

No binary data output is expected for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The Gitea instance URL must be configured in the credentials.
  • The node uses the Gitea REST API v1 endpoint /api/v1.

Troubleshooting

  • Common issues:

    • Incorrect owner or repo names leading to "Not Found" errors.
    • Insufficient permissions or invalid API token causing authorization failures.
    • Specifying a non-existent wiki page name results in an error.
  • Error messages and resolutions:

    • 404 Not Found: Verify that the owner, repository, and page name are correct.
    • 401 Unauthorized: Check that the API key credential is valid and has necessary permissions.
    • 400 Bad Request: Ensure the page name does not contain invalid characters.

Links and References

Discussion