Skip to content

feat: allow ignoring commits from certain users #3666

Open
@jgresty

Description

@jgresty

Expected Behavior

Some commits are raised by bots or other scripts that may not necessarily pass strict rulesets. It should be possible to bypass linting commits by some specified users so that commits made by some automated process do not need to be manually fixed up.

Current Behavior

It is only possible to ignore commits by the content of the messages.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Extend the ignores config matcher to include additional metadata. For this use case only user is required but there may be other use cases:

ignores: [
  (message, user) => user.includes('[bot]@users.noreply.github.com')
]

Context

We use automated processes to upgrade pull requests, the commits raised in this way contain a URL that sometimes is longer than the maximum line length. Since these are automated we don't particularly care about perfect formatting so want to ignore any commits raised by bot users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions