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

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!

Hello @bryanlamb :wave:

Our trigger map works according to the glob syntax, which you can find here: glob (programming) - Wikipedia

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:

Hey guys, what about the first question?

Did you get it through glob syntax? :thinking:

Thanks!

Quick correction!

It seems that only ā€˜*’ as a wildcard is supported. There is a feature request to provide full support for glob syntax so please be sure to add your support there!

Apologies for any confusion!