Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance to check whether a specific pull request in a repository has been merged. It is useful for automation workflows that need to verify the merge status of pull requests, such as triggering subsequent deployment steps only if a pull request has been successfully merged.

For example, you might use this node to:

  • Automatically notify a team when a pull request is merged.
  • Trigger CI/CD pipelines conditionally based on the merge status.
  • Audit or report on pull request statuses across repositories.

Properties

Name Meaning
Owner The owner (user or organization) of the repository where the pull request exists.
Repo The name of the repository containing the pull request.
Index The index (number) of the pull request to check for merge status.

Output

The node outputs JSON data indicating whether the specified pull request has been merged. The exact structure is not fully detailed in the provided source, but typically it would include at least a boolean field representing the merge status and possibly additional metadata about the pull request.

No binary data output is indicated.

Dependencies

  • Requires access to a Gitea instance via its API.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests to the Gitea API.
  • The base URL of the Gitea server must be set in the credentials.

Troubleshooting

  • Common issues:

    • Incorrect repository owner or name will cause the node to fail to find the pull request.
    • Providing an invalid pull request index may result in errors or no data returned.
    • Network connectivity or authentication failures with the Gitea API will prevent successful execution.
  • Error messages:

    • Authentication errors usually indicate missing or invalid API credentials.
    • "Pull request not found" errors suggest incorrect owner/repo/index inputs.
  • Resolutions:

    • Verify the correctness of the owner, repo, and pull request index values.
    • Ensure the API credentials are valid and have sufficient permissions.
    • Confirm network access to the Gitea server.

Links and References

Discussion