Actions56
- Repository Actions
- Issue Actions
- Pull Request Actions
- Organization Actions
- User Actions
- Comment Actions
- Label Actions
- Milestone Actions
- Release Actions
- Branch Actions
- File Actions
Branch → Get
AI-generatedSummary
Retrieve detailed information about a specific branch in a Codeberg repository.
Inputs
- Authentication — Choose the authentication method, either Access Token ('codebergApi') or OAuth2 ('oAuth2'). Defaults to 'codebergApi'.
- Repository Owner (required) — The owner of the repository from which to get the branch.
- Repository Name (required) — The name of the repository containing the branch.
- Branch Name (required) — The name of the branch to retrieve.
Output shape
a single JSON object representing the branch details
The output returns the branch information as a JSON object. The operation requires the repository owner, repository name, and branch name as inputs, and returns the branch data accordingly.
Examples
Example 1: Get the 'main' branch details from repository 'my-repo' owned by 'my-org'
Set 'Repository Owner' to 'my-org', 'Repository Name' to 'my-repo', and 'Branch Name' to 'main', then execute the operation.