Forgejo icon

Forgejo

Interact with Forgejo API

Overview

This node interacts with the Forgejo API to update a repository's details. It allows users to modify repository attributes such as name, description, privacy status, website URL, and default branch. This is useful for managing repository settings programmatically, for example, updating a repository's description or changing its visibility without manual intervention.

Use Case Examples

  1. Updating the description of a repository to reflect new project goals.
  2. Changing a repository from public to private for security reasons.
  3. Setting a new default branch after a major release.

Properties

Name Meaning
Owner The username or organization that owns the repository.
Repository The name of the repository to update.
Update Fields Collection of fields to update on the repository, including name, description, privacy status, website URL, and default branch.

Output

JSON

  • json - The JSON response from the Forgejo API representing the updated repository details.

Dependencies

  • Requires an API key credential for Forgejo API authentication.

Troubleshooting

  • Ensure the 'Owner' and 'Repository' fields are correctly specified; incorrect values will cause API errors.
  • Verify that the API key credential has sufficient permissions to update repository settings.
  • If updating the repository name, ensure the new name does not conflict with existing repositories under the same owner.
  • Check network connectivity and API endpoint URL if requests fail.

Links

Discussion