Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list tag protection rules for a specific repository. Tag protection is a feature that restricts who can push or delete tags in a repository, helping maintain the integrity of important tags such as release versions.

Common scenarios where this node is useful include:

  • Auditing tag protection settings across repositories to ensure compliance with organizational policies.
  • Automating checks before deployment pipelines to verify that critical tags are protected.
  • Integrating with monitoring systems to alert when tag protection rules change.

For example, a DevOps engineer might use this node to retrieve all tag protection rules for a repository named "my-app" owned by "team-alpha" to confirm that only authorized users can modify release tags.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository to query for tag protection rules.

Output

The node outputs JSON data representing the tag protection rules configured on the specified repository. This typically includes details such as which tags are protected, the users or teams allowed to push or delete those tags, and any associated restrictions.

No binary data output is produced 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.
  • Network access to the Gitea API endpoint is necessary.

Troubleshooting

  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions to read repository tag protection settings.
  • Repository not found: Verify that the "Owner" and "Repo" properties are correctly set and that the authenticated user has access to the repository.
  • API connectivity issues: Check network connectivity and that the Gitea server URL is correct in the credentials.
  • Empty results: If no tag protection rules are returned, confirm that tag protection is enabled on the repository.

Links and References

Discussion