Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically to retrieve tag protection details for a repository. The "Repo Get Tag Protection" operation fetches information about a specific tag protection rule identified by its ID within a given repository owned by a specified user or organization.

Common scenarios include:

  • Automating repository management workflows where you need to verify or audit tag protection settings.
  • Integrating repository metadata into dashboards or reports.
  • Triggering conditional logic in automation based on tag protection rules.

Example: You want to check if a particular tag is protected before allowing a deployment pipeline to proceed.

Properties

Name Meaning
Owner The owner of the repository (user or organization name).
Repo The name of the repository from which to get the tag protection details.
Id The numeric ID of the tag protection rule to retrieve.

Output

The node outputs JSON data representing the tag protection rule fetched from the Gitea API. This typically includes details such as the tag pattern protected, any restrictions applied, and metadata about the protection rule.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with a Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The Gitea API must be accessible from the n8n environment.

Troubleshooting

  • Invalid Credentials or URL: If authentication fails, ensure the API key and base URL are correctly set in the credentials.
  • Tag Protection Not Found: If the specified tag protection ID does not exist, the API will return an error. Verify the ID and repository details.
  • Network Issues: Connectivity problems to the Gitea server will cause request failures.
  • Permission Denied: The API token used must have sufficient permissions to read repository tag protections.

Links and References

Discussion