Skip to content

regexMatches is not working inside predicateMatchSpec #1609

Discussion options

You must be logged in to vote

Thanks, @owenrumney for helping me.
Here is the configuration that worked for me

 matchSpec:
      action: and
      predicateMatchSpec:
      - action: contains
        name: tags
        value: Owner
      - action: contains
        name: tags
        value:
          Squad:
            action: regexMatches
            value: "^SQUAD-\\d+$"

If you want to specific Owners you can do something like

    matchSpec:
      action: and
      predicateMatchSpec:
      - action: contains
        name: tags
        value: 
          Owner:
            action: isAny
            value:
            - Engineering
            - Ops
            - Test
      - action: contains
        name: tags
      …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by armanbaghajyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant