docs(automation): note Forgejo 10 broken-PR quirk and close/reopen fix
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2a9d4f08fa
commit
cc62a9ddf6
1 changed files with 14 additions and 0 deletions
|
|
@ -67,3 +67,17 @@ The runner deploys the tag and restarts the app. Watch progress under
|
|||
`docker exec -u 1000 forgejo forgejo admin user generate-access-token ...`.
|
||||
- Server-side env for the button lives in `~/pms/App/.env` on pms1
|
||||
(`FORGEJO_URL=http://127.0.0.1:3001` so it does not depend on the tunnel).
|
||||
- **Known Forgejo 10 bug:** clicking *Update branch* on a PR (or pushing to its
|
||||
head branch) can make the page show "This pull request is broken due to
|
||||
missing fork information" even though the PR is fine (API still reports
|
||||
`mergeable: true`). Fix: close and reopen the PR — via the UI, or:
|
||||
|
||||
```powershell
|
||||
$h = @{ Authorization = "token <claude-watcher token>" }
|
||||
Invoke-RestMethod -Method Patch -Headers $h -ContentType application/json `
|
||||
-Uri https://git.pelagiamarine.com/api/v1/repos/shad0w/pelagia-portal/pulls/<N> -Body '{"state":"closed"}'
|
||||
Invoke-RestMethod -Method Patch -Headers $h -ContentType application/json `
|
||||
-Uri https://git.pelagiamarine.com/api/v1/repos/shad0w/pelagia-portal/pulls/<N> -Body '{"state":"open"}'
|
||||
```
|
||||
|
||||
Fixed upstream in newer Gitea/Forgejo — resolves itself if Forgejo is upgraded past v10.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue