Forgejo icon

Forgejo

Interact with Forgejo API

Overview

This node operation updates an existing pull request in a Forgejo repository. It allows users to modify the pull request's body text and assignees by specifying the repository owner, repository name, and pull request number. This operation is useful for managing pull requests programmatically, such as updating descriptions or reassigning reviewers during the development workflow.

Use Case Examples

  1. Updating the description of a pull request to provide more context about the changes.
  2. Changing the assignees of a pull request to add or remove reviewers.

Properties

Name Meaning
Owner The username or organization that owns the repository where the pull request exists.
Repository The name of the repository containing the pull request to update.
Pull Request Number The unique number identifying the pull request to update within the repository.
Body The updated body text or description of the pull request.
Assignees A comma-separated list of usernames to assign to the pull request.

Output

JSON

  • json - The JSON response from the Forgejo API representing the updated pull request object.

Dependencies

  • Requires an API key credential for Forgejo API authentication.

Troubleshooting

  • Ensure the 'Owner', 'Repository', and 'Pull Request Number' fields are correctly specified to avoid 'not found' errors.
  • Verify that the API key credential has sufficient permissions to update pull requests in the target repository.
  • If updating assignees, ensure usernames are valid and exist in the repository context to prevent errors.

Discussion