Skip to content

Highlight non-trivial changes in feature files history #4953

Closed

Description

@kidonng

Description

Differentiate regular commits from lint/meta commits in our codebase, making the history page for feature files more useful.

We used to have a "Feature history" dropdown that does similar things, but it was dropped because of inconvenience to work with. More context on #4804.

Screenshot

No response

Example URL

https://github.com/refined-github/refined-github/commits/main/source/features/action-used-by-link.tsx

Activity

  1. added
    meta
    and removed on Oct 31, 2021
  2. fregante commented on May 1, 2022

    @fregante
  3. fregante commented on Mar 2, 2023

    @fregante
    Member

    Here's the regex to use to identify these commits and dim them. Something like:

    observe('.commit', commit => {
      if (metaRegex.test(commit.title)) {
        commit.classList.add('rgh-dim-commit')
      }
    })

    It can be a new rgh-dim-commits feature. The CSS would literally just dim the commit and not use dim-bots logic as previously suggested (that one also hides buttons that can still be useful here)

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

    acceptedmeta

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions