Skip to content

Add dim-merge-commits feature #2827

Closed

Description

@fregante

This would solve the "noise" concern mentioned in #2768

It would have to use a combined GraphQL query to determine which commits on the current page are merge commits, and then just apply opacity: 0.6 on their whole line. Or something like that.

"Combined GraphQL query" example: https://github.com/sindresorhus/refined-github/pull/2795/files#diff-04c19a6c246911e079b45f999eab501cR14-R22

Test URL

https://github.com/babel/babel/commits/master?after=ddd40bf5c7ad8565fc990f26142f85613958a329+104

Originally posted by @fregante in #2768 (comment)

Activity

  1. added
    small
    and removed on Feb 23, 2020
  2. sindresorhus commented on Feb 23, 2020

    @sindresorhus
    Member

    So bringing back #1988? Sounds good!

  3. yakov116 commented on Feb 23, 2020

    @yakov116
    Member

    @sindresorhus we only dropped it, since github removed the class to be able to check that it was there.

  4. fregante commented on Feb 23, 2020

    @fregante
    MemberAuthor

    @sindresorhus exactly! Except now it requires an API request for every isCommitList page load

  5. yakov116 commented on Feb 24, 2020

    @yakov116
    Member

    @fregante wouldn't it be the same as add-tags-to-comits

    I started looking into the code and then I realized your going to want to save each commit to storage.

    Just curious are we not already that we can use it for both things?

  6. fregante commented on Feb 24, 2020

    @fregante
    MemberAuthor

    That feature is too complex and I don’t want a copy of it. If anything we should drop/simplify the caching from it.

  7. yakov116 commented on Feb 24, 2020

    @yakov116
    Member

    @fregante do you have any idea how we can figure out if its a merge commit. I tried all ways I cant figure out a normal way.

  8. fregante commented on Feb 25, 2020

    @fregante
    MemberAuthor

    I think only merge commits have 2 parent commits

  9. yakov116 commented on Feb 25, 2020

    @yakov116
    Member

    @fregante Im working on it

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions