Skip to content

Pass if >= 1 commit message passes commit lint? #687

@cmitzel-ncino

Description

@cmitzel-ncino

Hey!

I found this action from my previous contribution to python-semantic-release, and thought it was a neat way to enforce semantic commits. While testing this action for our organization, we've found that the action only passes if every commit in the PR passes the linter. At this moment, we don't want to add that amount of friction to our hundreds of engineers workflows, but we'd love to enforce at least one relevant commit message in a given PR. It also fails if any of the messages don't pass, meaning that unless an engineer does some git-fu to rebase their commits they'd have a permanently failing check if any of their messages didn't adhere to the spec.

Is there a way to configure this action to pass or simply throw a warning at least 1 of the commits passes the linter? That would be acceptable for our purposes while our bothering our engineers the least we can.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions