tomasbjerre / simple-bitbucket-commit-checker

Simple, and easy to use, commit checker for Atlassian Bitbucket Server
https://marketplace.atlassian.com/plugins/se.bjurr.sscc.sscc
Other
21 stars 19 forks source link

Using message variables in Regex #61

Closed jvmbatista closed 8 years ago

jvmbatista commented 8 years ago

Hello,

Is it possible to add support, or use, the ${BITBUCKET_USER} variable in a regular expression?

I was trying the following in the branch checker ("/heads/dev/${BITBUCKET_USER}/.+") but the variable is not replaced.

Best Regards João

tomasbjerre commented 8 years ago

${BITBUCKET_USER} is the display name. You probably want the login name? I'm adding that as ${BITBUCKET_USER_SLUG}.

I'll release this soon...

jvmbatista commented 8 years ago

Hello,

Yes that's it. Branches have the developer username in the name so yes, that's what I was looking for.

Thanks for adding this ;)

tomasbjerre commented 8 years ago

This is released now. Open issue again if not working!

jvmbatista commented 8 years ago

Hi, just to let you know that it's working. Thanks