Skip to content

Pull request: Show a scheduled merge as a merge box section - #83

Merged
whereareiam merged 1 commit into
devfrom
fix/auto-merge-scheduled
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
fix/auto-merge-scheduled

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #82 (base is its branch): both add a page stylesheet to the same two lists.

What was wrong

With a merge scheduled for when checks succeed, Forgejo renders <div class="ui info message"> above the merge button. Inside the themed merge box it was a blue box about half the width of the bar, with "View command line instructions" beside it and the merge and cancel buttons on a second line, 22px apart.

What changed

styles/pages/pull-request.css (new page stylesheet, linked from component_assets.tmpl):

Before After
Notice blue info box, partial width, inside the action bar full-width section row, 64px, body background, divider below
Icon none 32px round clock on the accent colour
Text 14px, accent colour 16px / 600 like the other section titles, time muted
Merge and cancel buttons 22px apart 8px apart
Instructions link beside the notice under the buttons

Not measured against GitHub: its equivalent ("auto-merge enabled") needs branch protection, which GitHub does not offer on a private repository without a paid plan. The layout follows the merge box sections that were measured.

The rules are in a page stylesheet, not in pull_review.ts, because the theme files have about 600 bytes left under the size limit.

Verification

Reproduced in the preview by adding a required status check and scheduling the merge through the API (both removed afterwards). bun vitest (403 passed), bun check and Prettier pass. Screenshots are not attached.

🤖 Generated with Claude Code

When a merge is scheduled for when checks succeed, Forgejo prints a blue
notice above the merge button. In the themed merge box it sat half-width
beside the instructions link, with the buttons loosely below it.

The notice is now one more section of the box, like the rows above it: a
round clock icon and the sentence, with the merge button and "Cancel"
in the bar underneath, 8px apart.

The rules live in a new page stylesheet because the theme files are at
their size limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the bug Something isn't working label Oct 4, 2026
Base automatically changed from feature/dashboard-lists to dev October 4, 2026 15:42
@whereareiam
whereareiam merged commit 6b9d678 into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the fix/auto-merge-scheduled branch October 4, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant