Release v0.4.0 — One-Click PR Approval Button #6

Merged
Mike Bros merged 1 commit from release/0.4.0 into main 2026-03-16 06:05:08 +00:00
Collaborator

Release v0.4.0 — One-Click PR Approval Button

Changes

  • OP#2245: Add one-click Approve PR button to merge box

Summary

Adds an approve button (octicon-check icon) next to the existing "Checkout PR locally" button in the pull request merge box. The button:

  • Checks review state via the public Forgejo reviews API on page load
  • Shows active with "Approve this PR" tooltip when no approval exists
  • Shows green/disabled with "Already approved" when the user has already approved
  • Hides automatically for PR authors (can't self-approve) and unauthenticated users
  • Submits approvals via the Forgejo web route (/files/reviews/submit) using session cookie auth
  • Reloads the page after successful approval to reflect the new merge box state

Checklist

  • All version tasks closed in Gravity PM
  • Version file matches Gravity PM version
  • Manually tested on live PR

References

Version: 0.4.0 (Gravity PM)
Release task: OP#2248

## Release v0.4.0 — One-Click PR Approval Button ### Changes - OP#2245: Add one-click Approve PR button to merge box ### Summary Adds an approve button (octicon-check icon) next to the existing "Checkout PR locally" button in the pull request merge box. The button: - Checks review state via the public Forgejo reviews API on page load - Shows active with "Approve this PR" tooltip when no approval exists - Shows green/disabled with "Already approved" when the user has already approved - Hides automatically for PR authors (can't self-approve) and unauthenticated users - Submits approvals via the Forgejo web route (`/files/reviews/submit`) using session cookie auth - Reloads the page after successful approval to reflect the new merge box state ### Checklist - [x] All version tasks closed in Gravity PM - [x] Version file matches Gravity PM version - [x] Manually tested on live PR ### References Version: 0.4.0 (Gravity PM) Release task: OP#2248
Refs OP#2248

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mike Bros approved these changes 2026-03-16 06:04:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mike/neptune-forgejo!6
No description provided.