fix: fix: hire-an-agent must use Forgejo CLI for password reset — API PATCH ignores must_change_password (#206) #207
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-206"
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?
Fixes #206
Changes
AI Review
Summary
This PR does two things:
Promotes to a top-level helper — it was previously a nested function inside , which prevented its use elsewhere. The new version reads directly, exactly mirroring the now-gone closure capture of the local variable in . Behavior is identical for existing callers; the function is now reachable from .
**Fixes the password reset in ** — replaces with . This is the correct fix for Forgejo 11.x where the API silently ignores , leaving agents stuck at a forced-change-password prompt that breaks clones.
Checklist
No issues found.
Verdict
APPROVE — Clean refactor promotes _forgejo_exec to top-level and fixes password reset by routing through CLI instead of broken API PATCH
Reviewed at
f8bf620| AGENTS.mdAI Review: APPROVE — Clean refactor promotes _forgejo_exec to top-level and fixes password reset by routing through CLI instead of broken API PATCH