Skip to content

Print custom word if a "matchers" match a certain word #6460

Closed Answered by pascal-sun
pascal-sun asked this question in Q&A
Discussion options

You must be logged in to vote

Finally, I think I found a solution for my issue:

    matchers:
      - type: word
        name: version 1.0.0
        words:
          - "hash0001"
      - type: word
        name: version 1.0.1
        words:
          - "hash0002"
      ...
      - type: word
        name: version X.X.X
        words:
          - "hashXXXX"

This will match on hashXXXX for example, and print version X.X.X for example, which resolves my issue 😃

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pascal-sun
Comment options

Answer selected by princechaddha
@princechaddha
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants