tomasbjerre / pull-request-notifier-for-bitbucket

Bitbucket Server plugin that invokes a custom URL when a pull request event is triggered.
Other
185 stars 74 forks source link

syntax for regex #234

Open pemercer opened 7 years ago

pemercer commented 7 years ago

I am using BB 4.14.5, plugin version 2.63 I am trying to configure a project level notification, I want to be able to specify branch and repo. Otherwise I have to go to each repo and create the same notification on just branch, it's a lot of clicks should I need to make a change.

I have tried using the following: filter string: ${PULL_REQUEST_TO_BRANCH} ${PULL_REQUEST_FROM_REPO_NAME}

filter regex: branch repo1|repo2|repo3

The docs don't give any examples to the regex syntax that may be needed here. Wanted some help with that.

tomasbjerre commented 7 years ago

Try branch (repo1|repo2|repo3)

pemercer commented 7 years ago

ENG-SDN is the project, and wanting only the following repos to use the notification when a PR is approved for

branch feature1-staging or the trigger build button is pressed.

"shared"

"models"

"device_packs"

"grapevine"

"grapevine-services"

"mashup"

"apic-em-core"

"maps-app"

Thanks,

Pete Mercer


From: Tomas Bjerre notifications@github.com Sent: Tuesday, July 18, 2017 12:19 AM To: tomasbjerre/pull-request-notifier-for-bitbucket Cc: Pete Mercer (pemercer); Author Subject: Re: [tomasbjerre/pull-request-notifier-for-bitbucket] syntax for regex (#234)

What is the name of the project? And should all or only a few repos be included?

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/234#issuecomment-315953923, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ac2atyC93X1yAt0Owu-E1P3vsw3ttw6dks5sPDJUgaJpZM4Oa0MP.

tomasbjerre commented 7 years ago

Try branch (repo1|repo2|repo3)

tomasbjerre commented 7 years ago

This is a good site for fiddling with regexp: https://jex.im/regulex/#!embed=false&flags=&re=branch%20(repo1%7Crepo2%7Crepo3)