feat: add close/reopen action to PR detail view #92
Reference in New Issue
Block a user
Delete Branch "feature/pr-close-reopen-91"
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?
Summary
POST /pulls/{owner}/{repo}/{index}/statehandler that reuses the existingSetIssueStateGitea API call (PRs share the issues state endpoint)state-closedwhen a PR is closed (was always usingstate-open)Test plan
go build ./...passes (verified)state-closedCSS stylingCloses #91
🤖 Generated with Claude Code
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>