Codeberg icon

Codeberg

Interact with the Codeberg API

Branch → Create

AI-generated

Summary

Create a new branch in a specified Codeberg repository by providing the repository owner, repository name, the new branch name, and the source branch to create it from.

Inputs

  • Authentication — Choose the authentication method: Access Token or OAuth2.
  • Repository Owner (required) — Owner of the repository.
  • Repository Name (required) — Name of the repository.
  • New Branch Name (required) — The name of the new branch to be created.
  • Source Branch (required) — The source branch from which to create the new branch.

Output shape

a single JSON object representing the newly created branch

The output JSON contains the API response data with details about the created branch.

Links

Discussion