Skip to content

Show latest commit message on project page #3277

Closed

Description

@Aaron1011

The most recent Github update hides the latest commit message on a project page. Instead, it only shows the author, commit date, and SHA:

This seems like a misfeature to me - there's always enough space to display at least part of the commit message. Seeing a commit message by default is much more useful than a SHA - I have no reason to want to copy a SHA until I know what the commit does.

I think it would be useful to hide the SHA and use the extra space to display as much of the commit message as will fit.

Activity

  1. kidonng commented on Jun 25, 2020

    @kidonng
    Member

    Maybe we can just expand the commit message by default.

    There is a problem that the commit message can be lengthy, like Linux kernel:

    image

  2. Aaron1011 commented on Jun 25, 2020

    @Aaron1011
    ContributorAuthor

    @kidonng: That's what I ended up implementing: #3278

  3. fregante commented on Jul 1, 2020

    @fregante
    Member

    This piece of information is actually already on the page. What if we inconspicuously highlighted the latest commit in the filelist?

    Bold:

    Blue line:

  4. keysmashes commented on Jul 1, 2020

    @keysmashes
    Contributor

    That's not much help for repositories with many top-level files (e.g. git), though it's an interesting idea.

  5. kidonng commented on Jul 1, 2020

    @kidonng
    Member

    I agree with @sersorrel, it's hard to discover in my opinion.
    Can we always show the first line of the commit message (and user click expand to see the rest of the message and description)? (#3278 (comment))

  6. fregante commented on Jul 2, 2020

    @fregante
    Member

    This doesn't look great

    But messing with negative margins and text-gray might fix it:


    • Can this feature be implemented with CSS only?
    • Would the negative margins cause overlaps?
    • Would this cause the content to jump? i.e. is the commit message lazily loaded?

    If "yes no no," then this feature could be added.

  7. fregante commented on Jul 6, 2020

    @fregante
    Member

    I realized I want this. PR welcome to fix it as described above: only the commit title + centered on the avatar.

    However the centering might have to be inside a media query because in small windows the commit title has to be on a second line:

  8. yakov116 commented on Jul 7, 2020

    @yakov116
    Member

    its comming back
    image

  9. fregante commented on Jul 7, 2020

    @fregante
    Member

    They're onto us!!

    However that change moves 2 links next to the branch selector, breaking latest-tag-button

  10. kidonng commented on Jul 8, 2020

    @kidonng
    Member

    @fregante Changing the selector from .breadcrumb to .file-navigation .flex-auto works on both layout, but...
    image

    Change it to #branch-select-menu (append it after the branch select button), better but still not ideal:

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions