fix: correct Forgejo API references for merge and comments
This commit is contained in:
parent
5a9e026984
commit
56b5f8647f
1 changed files with 5 additions and 5 deletions
|
|
@ -285,15 +285,15 @@ PATCH /repos/{owner}/{repo}/pulls/{index}
|
||||||
Body: {"state": "closed"}
|
Body: {"state": "closed"}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Merge PR (merge with squash)
|
### Merge PR
|
||||||
```
|
```
|
||||||
MERGE /repos/{owner}/{repo}/pulls/{index}
|
POST /repos/{owner}/{repo}/pulls/{index}/merge
|
||||||
Body: {"merge_base": "main", "method": "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>"}
|
Body: {"body": "<comment text>"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue