Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node integrates with the Gitea API to add a repository to a specific team within an organization. It is useful for automating team management tasks in Gitea, such as granting a team access to a repository programmatically. For example, when onboarding new projects or teams, this node can streamline assigning repositories to teams without manual intervention.

Properties

Name Meaning
Id The numeric ID of the team to which the repository will be added.
Org The name of the organization that owns the repository.
Repo The name of the repository to add to the team.

Output

The node outputs JSON data representing the result of the API call to add the repository to the team. This typically includes confirmation details about the team and repository association. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • Uses the Gitea REST API endpoint /api/v1 to perform operations.

Troubleshooting

  • Common issues:
    • Invalid team ID or repository name may cause the API call to fail.
    • Insufficient permissions for the API key to modify team repositories.
    • Incorrect organization name leading to resource not found errors.
  • Error messages:
    • Authorization errors indicate missing or invalid API credentials.
    • Not found errors suggest incorrect team ID, organization, or repository names.
  • Resolutions:
    • Verify the correctness of all input properties.
    • Ensure the API key has appropriate scopes/permissions.
    • Confirm the organization and repository exist on the Gitea server.

Links and References

Discussion