The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Default Pull Request Tasks: More control.

mark_gillespie
Contributor
October 5, 2022

Really like the default tasks for pull requests feature in the latest Bitbucket release, however for large codebases, the tasks need to be very generic.

 

I was hoping there would be some way to add conditions, e.g. if files in a particular folder or namespace have changed, or file changes with a wildcard or regex.


Is that something on the plan?  It would make this feature really useful, as sadly at the moment, it's quite limited.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 5, 2022

Hi,

You could use our app Checklist Buddy for Bitbucket which supports adding different PR tasks based on the PR file content.

It uses configuration as code with rules for default tasks.

Here's an example: to have different default tasks when a PR contains *.js files, just add this rule

--files *.js   +task+  UI changes visually inspected on [Firefox](https://www.mozilla.org/en-US/firefox)

As you can see, file pattern similar to .gitignore are supported to specify conditions for the files in the pull request. You can use markdown for the default task descriptions.

For more details, check our documentation.

Let us know if you have any questions.

Best regards,

Michael

TAGS
AUG Leaders

Atlassian Community Events