How can I disable merge diff emails for a specific repo?

I have a number of repositories which contain sensitive information.

I want to continue to receive email's regarding pull requests, however, I don't want the emails to contain the actual merge diffs in plaintext, or really at all in the email itself.

Is there a way to disable/modify email notifications for an entire project or a single repository?

---

Currently using Stash 3.6.1

Note: Only interested in modifying notifications for a targeted project/repo, not all of them globally.

 

2 answers

What version of Bitbucket are you on? Check this page out (https://confluence.atlassian.com/stash/stash-config-properties-296094368.html#Stashconfigproperties-Notifications). I do not seem to recall disabling it at all unless you supply an invalid email config in the Bitbucket settings.

0 votes
Ben Stuart Atlassian Team Dec 27, 2017

Hello,

In the public facing issue BSERV-4747 our development team decided not to allow using email templates, so the email notifications sent by Bitbucket Server cannot be customized.

Your best option is to add the issue you've found, BSERV-9893, to your watch list and add your feedback there. This will make our development team prepare a solution that best matches your needs.

It might be possible to download Bitbucket Server source code if your license allows doing that, then and customize email notifications someway (maybe other people can help clarifying that in this thread, because I am not sure which source should be modified), but please bear in mind that customized instances (or built from source) are not supported.

You can also try a plugin like Notifyr - Notifications for Bitbucket which gives you an option to remove code I believe. 

Regards,
Ben

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

666 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot