Skip to content

feature request: option to filter commits by path #252

@privatenumber

Description

@privatenumber

Feature request

I'd like the option to be able to pass in a directory path or glob to filter commits by. For example, if I pass in ./src/, it should only read commits that touch the ./src/ directory.

Why?

  • Primarily, I think this would bring us one step closer to monorepo support. By running semantic-release in each sub-package with a commit-filter for its own directory, it would be able to determine whether to make a release for the subpackage.
  • Secondarily, setting a filter to source files can add an extra layer of protection in a large codebase.
  • Seems trivial to do

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions