dbcfbe9138
Add POST /pulls/{owner}/{repo}/{index}/state handler that reuses the
existing SetIssueState Gitea API call (PRs share the issues state
endpoint). The PR detail template now shows a Close PR / Reopen PR
button with HTMX for seamless state toggling without full page reload.
Also fixes the state badge to use the correct CSS class when a PR is
closed.
Closes leeworks-agents/gitea-mobile#91
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>