fix: use GET for registration token endpoints #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/registration-token-get"
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?
Forgejo 14.x serves registration tokens via GET, not POST. All three
endpoints (admin, org, repo) were sending POST requests, which
returned 405 Method Not Allowed.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Automated review by pr-reviewer v0.15.0 | Safety Check | anthropic | tracking id
r-c623cb-46fe0cThis is an AI-generated review and may contain -istakes.
Status: ✅ Completed
✅ Verdict: LGTM — The change correctly switches from POST to GET requests for registration token endpoints to match Forgejo 14.x API, with proper test updates.
Complexity: trivial
Safety Check Review
This PR fixes a compatibility issue with Forgejo 14.x by changing HTTP method from POST to GET for registration token endpoints. The changes are straightforward:
POSTtoGETfor all three registration token endpointsNo security issues, bugs, or breaking changes detected. The fix addresses a legitimate API compatibility issue (405 Method Not Allowed errors).
76fef160df7624c3852aAutomated review by pr-reviewer v0.15.0 | Safety Check | anthropic | tracking id
r-c623d2-352c07This is an AI-gene2ated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — The changes correctly switch from POST to GET requests for registration token endpoints, which aligns with the Forgejo 14.x API behavior described in the PR.
Complexity: trivial
Safety Check Review
This PR fixes a legitimate API compatibility issue by changing HTTP method from POST to GET for Forgejo registration token endpoints. The changes are:
The fix addresses the 405 Method Not Allowed errors mentioned in the description. No security concerns, breaking changes, or obvious bugs detected.