I want to create an automation that moves issues depending on the destination branch in Github. Is there a way to use a regex to check if the returned url contains a specific text and then build my if cases based on that?
Something like:
if {{pullrequest.destinationbranch.url}}.contains("text"), then do something.
Using a normal hook I use:
key in ({{webhookData.pull_request.head.ref.match("([PIPD]+-\d+)")}})
I'm looking for the same but using the Pull Request trigger instead of the webhookData