Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to remove a repository from a specific team within an organization. It is useful in scenarios where you need to programmatically manage team access to repositories, such as automating permission cleanup or restructuring teams and their associated repositories.

For example, if an organization wants to revoke a team's access to a particular repository after project completion or team changes, this node can be used to automate that removal process.

Properties

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

Output

The node outputs JSON data representing the response from the Gitea API after attempting to remove the repository from the team. This typically includes status information about the success or failure of the operation.

No binary data output is involved.

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, organization name, or repository name may cause the API call to fail.
    • Insufficient permissions for the API key to modify team repositories.
    • Incorrect or missing base URL in credentials leading to connection errors.
  • Error messages:

    • Authorization errors indicate the API key lacks necessary scopes or permissions.
    • Not found errors suggest the team, organization, or repository does not exist or is misspelled.
    • Network errors may occur if the Gitea server URL is unreachable.
  • Resolutions:

    • Verify all input properties are correct and correspond to existing entities.
    • Ensure the API key has appropriate permissions to manage teams and repositories.
    • Confirm the Gitea server URL is correctly set in the credentials and accessible.

Links and References

Discussion