Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance to retrieve detailed information about a specific pull request in a repository. It is useful when you want to programmatically access pull request data such as its status, author, commits, or comments within an automation workflow.

Common scenarios include:

  • Automatically fetching pull request details for reporting or monitoring.
  • Triggering downstream actions based on pull request state or metadata.
  • Integrating Gitea pull request data into other systems like issue trackers or CI/CD pipelines.

For example, you could use this node to get the 5th pull request of a repository owned by "octocat" and then analyze its content or notify a team.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository from which to fetch the pull request.
Index The zero-based index of the pull request to retrieve (e.g., 0 for first).

Output

The node outputs JSON data representing the pull request object retrieved from the Gitea API. This includes all standard pull request fields such as title, description, author info, state (open/closed), creation date, merge status, and more.

If the node supports binary data output, it would typically relate to attachments or files associated with the pull request, but no such indication is present here.

Dependencies

  • Requires connection to a Gitea instance via its REST API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the Gitea API must be set in the credentials configuration.

Troubleshooting

  • Invalid owner or repo name: Ensure the "Owner" and "Repo" properties are correctly spelled and exist in the Gitea instance.
  • Index out of range: If the specified pull request index does not exist (e.g., index too high), the node may return an error or empty result.
  • Authentication errors: Verify that the API token credential is valid and has sufficient permissions to read repository pull requests.
  • Network issues: Confirm that the Gitea server URL is reachable from n8n and there are no firewall restrictions.

Links and References

Discussion