Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API, specifically focusing on repository-related operations. The "Repo Check Team" operation checks whether a specified team has access to a particular repository owned by a given user or organization. This is useful in scenarios where you want to automate permission audits, verify team access before performing actions, or integrate access control checks into workflows.

Practical examples include:

  • Automatically verifying if a development team has access to a repository before triggering deployment pipelines.
  • Auditing team permissions across multiple repositories to ensure compliance.
  • Integrating access checks into project management tools to display current team permissions.

Properties

Name Meaning
Owner The owner of the repository (user or organization name).
Repo The name of the repository to check.
Team The name of the team whose access to the repository is being verified.

Output

The node outputs JSON data representing the result of the team access check for the specified repository. Typically, this will include information indicating whether the team has access and possibly details about the team's permissions or role within the repository.

If the node supports binary data output, it would generally relate to raw API responses or attachments, but based on the provided code and operation, the output is primarily JSON structured data.

Dependencies

  • Requires an active connection to a Gitea server with API access.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • The base URL of the Gitea instance must be set in the credentials configuration.

Troubleshooting

  • Common issues:

    • Incorrect owner, repo, or team names leading to "not found" errors.
    • Insufficient permissions of the API token causing authorization failures.
    • Network connectivity problems preventing access to the Gitea server.
  • Error messages:

    • 404 Not Found: Verify that the owner, repository, and team names are correct and exist.
    • 401 Unauthorized: Check that the API token is valid and has sufficient permissions.
    • Network Errors: Ensure the Gitea server URL is reachable from the n8n environment.

Resolving these typically involves double-checking input parameters, validating API credentials, and confirming network accessibility.

Links and References

Discussion