Skip to content

Add config option to only apply first match #52

@KevinBatdorf

Description

@KevinBatdorf

I'd like to have a fallback label applied without any matches.

feature: ['feature/*', 'feat/*']
fix: fix/*
chore: chore/*
unknown: *

So if nothing matches, it will add the label "unknown"

I was thinking you could add a config option where it would return on the first match instead of looping through each (then it would use the * as the fallback if nothing else matched). Does that seem feasible?

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