Actions73
- Repository Actions
- Issue Actions
- Pull Request Actions
- User Actions
- Organization Actions
- Release Actions
- Webhook Actions
- Branch Actions
- Commit Actions
- Tag Actions
Overview
This node interacts with the Forgejo API to manage branches within repositories. Specifically, the 'Branch: List' operation retrieves a list of branches for a specified repository owned by a user or organization. It supports pagination options to control the page number and the number of results per page. This node is useful for scenarios where you need to programmatically access branch information, such as automating repository management, auditing branches, or integrating branch data into workflows.
Use Case Examples
- List all branches in a repository owned by a specific user or organization.
- Fetch branches with pagination to handle large repositories efficiently.
Properties
| Name | Meaning |
|---|---|
| Owner | The username or organization that owns the repository from which branches will be listed. |
| Additional Options | Optional parameters to control pagination, including the page number to start from and the maximum number of results per page. |
Output
JSON
json- An array of branch objects returned from the Forgejo API, each representing a branch in the specified repository.
Dependencies
- Requires an API key credential for Forgejo API authentication.
Troubleshooting
- Ensure the 'Owner' parameter is correctly set to the repository owner (username or organization).
- Verify that the repository exists and the authenticated user has permission to access it.
- Check pagination parameters to avoid requesting pages beyond the available range.
- Common errors include authentication failures (check API credentials) and invalid repository or branch names (verify input parameters).
Links
- Forgejo API Documentation - Official API documentation for Forgejo, useful for understanding available endpoints and parameters.