Forgejo Tool #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tom/forgejo-tool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit introduces the functionality to list branches for a given Forgejo repository. - Adds `ForgejoCommit` and `ForgejoBranch` Pydantic models in `openapi_mcp_server/tools/forgejo/models.py` to represent commit and branch data. - Implements the `GET /repos/{owner}/{repo}/branches` endpoint in `openapi_mcp_server/tools/forgejo/routes.py` to fetch and return branch information. - Updates `openapi_mcp_server/tools/forgejo/routes.py` to use the new `ForgejoBranch` model for response validation.