Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server to list branch protection rules for a specific repository. It is useful in scenarios where you want to programmatically retrieve the branch protection settings of a repository, such as automating compliance checks, auditing repository configurations, or integrating branch protection data into dashboards or reports.

For example, a DevOps engineer might use this node to fetch all branch protection rules on a repository before deploying changes, ensuring that protected branches are not accidentally modified.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository from which to list branch protection rules.

Output

The node outputs JSON data representing the branch protection rules of the specified repository. This typically includes details such as which branches are protected, what restrictions are applied (e.g., required status checks, required reviewers), and other related metadata.

No binary data output is produced by this node.

Dependencies

  • Requires access to a Gitea instance via its API.
  • Needs an API authentication token credential configured in n8n to authenticate requests to the Gitea server.
  • The base URL of the Gitea server must be provided in the credentials configuration.

Troubleshooting

  • Authentication errors: Ensure the API token credential is valid and has sufficient permissions to read repository branch protection settings.
  • Repository not found: Verify that the "Owner" and "Repo" property values are correct and that the authenticated user has access to the repository.
  • Network issues: Confirm that the Gitea server URL is reachable from the n8n environment.
  • API version mismatch: If the Gitea server uses a different API version or customizations, some endpoints may not work as expected.

Links and References

Discussion