Skip to content

tag_regex: inverse match #349

Open
Open
@siredmar

Description

@siredmar

Hi!
Currently i am facing the task of triggering a build pipeline when only for commits that don't match some tag regex.
I want to exclude in my staging environment everything that does not match .*[0-9]+.[0-9]+.[0-9]+.*
Basically the check uses somethign like this:
git tag --list --sort=creatordate | grep -Ex ${regex}
In my special case i would use invert matching using grep -v
e.g. git tag --list --sort=creatordate | grep -Exv ".*[0-9]+.[0-9]+.[0-9]+.*"

My proposal: a bool tag_regex_invertthat would enable the -v option for the grep commands using tag_regex.

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