diff --git a/formulas/run-architect.toml b/formulas/run-architect.toml index 3d5e44b..c813ca6 100644 --- a/formulas/run-architect.toml +++ b/formulas/run-architect.toml @@ -182,8 +182,8 @@ All operations use the Forgejo API with `Authorization: token ${FORGE_TOKEN}` he ### Create branch ``` -POST /repos/{owner}/{repo}/git/branches -Body: {"name": "architect/", "old_ref": "refs/heads/main", "new_ref": ""} +POST /repos/{owner}/{repo}/branches +Body: {"new_branch_name": "architect/", "old_branch_name": "main"} ``` ### Create/update file @@ -200,7 +200,7 @@ Body: {"title": "architect: ", "body": "", "head" ### Close PR ``` -POST /repos/{owner}/{repo}/pulls/{index}/pull +PATCH /repos/{owner}/{repo}/pulls/{index} Body: {"state": "closed"} ```