Skip to content

feat(ui): differentiate merge commits in the commit view - #8372

Open
heavry wants to merge 1 commit into
gogs:mainfrom
heavry:fix/show-merge-commit
Open

feat(ui): differentiate merge commits in the commit view#8372
heavry wants to merge 1 commit into
gogs:mainfrom
heavry:fix/show-merge-commit

Conversation

@heavry

@heavry heavry commented Jun 21, 2026

Copy link
Copy Markdown

Fixes #2696

Problem

Merge commits look identical to regular commits in the commit view. Users cannot tell at a glance which commits are merges without opening each one. Bitbucket, GitHub, and other forges visually differentiate merge commits, but Gogs does not.

Solution

Merge commits are now visually distinct in the commit list:

  • The entire row is dimmed (opacity 0.65) for quick scanning.
  • A small label with the octicon-git-merge icon and the word "merge" appears next to the SHA. This follows WCAG 2.2 AA by not relying on color alone as the distinguishing signal.
  • The commit message remains greyed out as before.

The label text is localized via commits.merge_commit in the English locale file.

Screenshot

Before: all rows look the same, merge commits blend in.

After: merge commit rows are dimmed and tagged with a merge label.


IssueHunt bounty: $5

Merge commits are now visually distinct in the commit list:
- The entire row is dimmed (opacity 0.65) for quick scanning.
- A small merge label with the octicon-git-merge icon appears
  next to the SHA, so the distinction is not color-only.
- The commit message remains greyed out as before.

Closes gogs#2696
@heavry
heavry requested a review from unknwon as a code owner June 21, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show if a commit is a merge in the commit view

1 participant