Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API, specifically allowing management of repository teams. The "Repo Delete Team" operation removes a specified team from a given repository. This is useful in scenarios where you want to revoke a team's access or association with a repository, such as when reorganizing permissions or cleaning up team assignments.

Practical example: If an organization wants to remove a development team from a project repository after the project ends, this node can automate that removal process within an n8n workflow.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository from which the team will be removed.
Team The name of the team to delete from the repository.

Output

The node outputs JSON data representing the result of the delete operation. Typically, for a delete action, the output might be an empty object or confirmation of success. No binary data output is involved.

Dependencies

  • Requires connection to a Gitea instance via its API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL for the Gitea API must be set in the credentials.

Troubleshooting

  • Common issues:

    • Incorrect owner, repo, or team names may cause the API to return errors indicating the resource was not found.
    • Insufficient permissions for the API token can lead to authorization errors.
    • Network connectivity problems to the Gitea server will prevent successful API calls.
  • Error messages and resolutions:

    • 404 Not Found: Verify that the owner, repository, and team names are correct and exist on the Gitea server.
    • 401 Unauthorized or 403 Forbidden: Check that the API token has sufficient permissions to manage repository teams.
    • Network errors: Ensure the Gitea server URL is reachable and correctly configured in credentials.

Links and References

Discussion