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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.