Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to check whether a specified user is a member of a given organization. It is useful in automation workflows where you need to verify user membership within organizations hosted on a Gitea instance, such as managing access control, auditing team memberships, or triggering actions based on membership status.

For example, you might use this node to:

  • Automatically grant permissions if a user belongs to a certain organization.
  • Notify administrators when a user is not part of an expected organization.
  • Integrate membership checks into CI/CD pipelines for repository access validation.

Properties

Name Meaning
Org The name of the organization to check.
Username The username of the user to verify membership for.

Output

The node outputs JSON data representing the membership status of the user in the specified organization. Typically, this would include a boolean or object indicating whether the user is a member, along with any relevant metadata returned by the Gitea API about the membership.

If the node supports binary data output (not evident from the provided code), it would be related to any files or attachments returned by the API, but this is unlikely for a membership check operation.

Dependencies

  • Requires an active connection to a Gitea instance via its API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL of the Gitea server must be set in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Incorrect organization or username values may result in "not found" errors.
    • Network connectivity problems can prevent the node from reaching the Gitea API.
  • Error messages and resolutions:

    • 401 Unauthorized: Check that the API token is valid and has sufficient permissions.
    • 404 Not Found: Verify that the organization and username exist on the Gitea server.
    • Network Error: Ensure the Gitea server URL is correct and accessible from n8n.

Links and References

Discussion