Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to publicize a member of an organization on Gitea, a self-hosted Git service. Publicizing a member means making their membership visible publicly in the organization's profile. This can be useful for organizations that want to showcase their team members or contributors openly.

Common scenarios include:

  • An organization wants to highlight certain users as official members.
  • Managing visibility of team members in open source projects hosted on Gitea.
  • Automating membership publicity as part of organizational workflows.

Example: Automatically publicize a user named "johndoe" as a member of the "my-org" organization after they join.

Properties

Name Meaning
Org The name of the organization where the member belongs.
Username The username of the user to be publicized as a member.

Output

The node outputs JSON data representing the result of the publicize member API call. This typically includes details about the membership status or confirmation of the action performed. The exact structure depends on the Gitea API response but generally confirms that the user is now publicly listed as a member of the specified organization.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API endpoint /orgs/{org}/public_members/{username} to perform the publicize member action.

Troubleshooting

  • Invalid Organization or Username: If the organization or username does not exist, the API will return an error. Verify the spelling and existence of both.
  • Insufficient Permissions: The API token used must have permission to manage organization memberships. Otherwise, the request will fail with an authorization error.
  • Network Issues: Ensure the Gitea server URL is reachable from n8n and that no firewall or network restrictions block the request.
  • API Rate Limits: If many requests are made in a short time, the API might throttle calls. Implement retries or backoff strategies if needed.

Links and References

Discussion