fix: correct Forgejo API references for merge and comments

This commit is contained in:
Agent 2026-04-01 11:08:37 +00:00
parent 5a9e026984
commit 56b5f8647f

View file

@ -285,15 +285,15 @@ PATCH /repos/{owner}/{repo}/pulls/{index}
Body: {"state": "closed"}
```
### Merge PR (merge with squash)
### Merge PR
```
MERGE /repos/{owner}/{repo}/pulls/{index}
Body: {"merge_base": "main", "method": "merge"}
POST /repos/{owner}/{repo}/pulls/{index}/merge
Body: {"Do": "merge"}
```
### Post comment on PR
### Post comment on PR (via issues endpoint)
```
POST /repos/{owner}/{repo}/pulls/{index}/comments
POST /repos/{owner}/{repo}/issues/{index}/comments
Body: {"body": "<comment text>"}
```