• v0.4.1 1e4f6bef00

    v0.4.1 — Approve Button Fix for Private Repos
    All checks were successful
    Publish / detect-release (push) Successful in 6s
    Publish / tag (push) Successful in 4s
    Publish / promote-release (push) Successful in 1s
    Stable

    Gravity Bot released this 2026-03-22 02:52:06 +00:00 | 0 commits to main since this release

    What's Changed

    Bug Fixes

    • Approve button on private repos: Replaced API-based review detection with DOM-based sidebar reading. Forgejo 14's stateless CSRF protection blocks session cookies on programmatic fetch() calls, causing the approve button to silently disappear on private repos. The button now reads the sidebar reviewers list directly — no network request needed.

    • Admin self-approval: Users with merge permission (repo admins) can now approve their own PRs. Previously the button was hidden unconditionally for PR authors.

    • Simplified click handler: Removed the API fallback for getting the commit ID — now uses window.config.pageData.pullRequestMergeForm.pullHeadCommitID exclusively, which is always available when the merge form renders.

    Tasks

    • OP#2783: Fix approve button on private repos and allow admin self-approval
    • OP#2784: Create release branch and publish v0.4.1
    Downloads