Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically focusing on repository-related operations. The "Repo New Pin Allowed" operation checks whether adding new pins to a specified repository is permitted. This can be useful in automation workflows where you want to conditionally manage repository pins based on permissions or repository settings.

Practical examples include:

  • Automatically verifying if pinning new issues or pull requests is allowed before attempting to pin them.
  • Integrating repository permission checks into CI/CD pipelines or project management automations.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository to check for new pin allowance.

Output

The node outputs JSON data representing the response from the Gitea API regarding the "new pin allowed" status of the specified repository. The exact structure depends on the API response but typically includes a boolean or status indicating whether new pins are allowed.

No binary data output is expected from this operation.

Dependencies

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

Troubleshooting

  • Common Issues:

    • Incorrect owner or repository names will result in errors or empty responses.
    • Missing or invalid API authentication token will cause authorization failures.
    • Network connectivity issues to the Gitea server will prevent successful API calls.
  • Error Messages:

    • Authorization errors typically indicate missing or incorrect API credentials.
    • Not found errors suggest the specified repository or owner does not exist or is inaccessible.
  • Resolutions:

    • Verify and update the API credentials.
    • Double-check the spelling and case sensitivity of the owner and repo names.
    • Ensure the Gitea server URL is reachable from the n8n environment.

Links and References

Discussion