Hi,
I am trying to using import tfrun and get the message and would like to do the regex on the message to change ticket. So is there a way I can do a regex to get the ticket from the commit message and evaluate the policy to fail or run.
Thanks,
Hi,
I am trying to using import tfrun and get the message and would like to do the regex on the message to change ticket. So is there a way I can do a regex to get the ticket from the commit message and evaluate the policy to fail or run.
Thanks,
Hi @swetharamk,
Take a look at the documentation for the matches operator.
I did try to use the matches to get it but , it was failing with unknow escape sequence.
I tried to check if the regex is correct in python before implementing it.
https://play.sentinelproject.io/p/cqeb_I0XWmj
@swetharamk take a look at the following:
https://play.sentinelproject.io/p/-KjFCHLW1UQ