adding a trigger list for Pull Requests

Galit Oshri
Contributor
February 4, 2025

Hi,

We would like to explore the possibility of adding a trigger list for Pull Requests, allowing developers to select which builds to run. For instance, when a developer opens a Pull Request, they may need to run a different build instead of the default ones. To give developers this flexibility, we would like to present a checkbox or a list, enabling them to manually select and trigger specific builds. 

Does Bitbucket has an option to add this kind of option?

Thanks,

Galit 

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2025

One idea maybe...

If you can use the standard automation rules to trigger the builds, then you could implement an automation rule which is:

  • triggered by the "pull request created", "pull request updated", etc. events
  • tests the pull request title and description fields for string occurence
    • for example, if you have builds A, B and C, then the automation rule checks if the PR desc contains the substrings "Run build A", "Run build B", "Run build C"
  • runs the builds depending on whether the strings were found

You could even make it more convenient by using a PR description template where the options are listed.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events