How to make pull request trigger only execute on code change?

bitbucket
#1

Hi,

  1. I notice making any update to a Bitbucket PR (even changing a description) triggers my workflow to execute. This is for code analysis I’d like it only to apply on code push, is this possible?

  2. I would like the above trigger to apply to all branches except one (master), how can I add exclusions to a trigger?

Thanks!

0 Likes

#2

Hello @bryanlamb :wave:

Our trigger map works according to the glob syntax, which you can find here: https://en.wikipedia.org/wiki/Glob_(programming)

Everything you see there as an option should work for you, I think what you need to implement in your trigger set up is the ‘!’ wildcard feature :slight_smile:

0 Likes