need to get a notification when a repo is created in a project

Varsha Mungale December 6, 2024

My company has only one workspace. There are multiple projects within this workspace. There are 7 people who are part of the admin group and have the permission to create repos in any of the projects. 
I want to enable notification so that i get notified when a new repo gets created. Notification can be on email or on Slack. 

Thanks 
Varsha

1 answer

0 votes
vikram
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 Leaders.
December 6, 2024

Hi @Varsha Mungale 

you can setup email notifications from settings if you have admin permissions like below.

  • Navigate to Bitbucket Settings from your avatar ICON. 
  • Click on General and Notifications
  • In this page you can Enable email notifications

also you can go through the below knowledge documentation for more things

https://confluence.atlassian.com/bitbucket/manage-email-notifications-325321743.html

For Repository notification below url. 

https://confluence.atlassian.com/bitbucketserver/repository-notifications-949754838.html

https://confluence.atlassian.com/bitbucketserver/notifications-776639933.html

Vikram P

Varsha Mungale December 10, 2024

These notifications are all on the repos that you are watching. And for pull requests etc.
I want to be notified when a repo is created in one specific project within my workspace. 

vikram
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 Leaders.
December 10, 2024

Hi @Varsha Mungale 

Try to create a webhook in your workspace to get notification whenever any new repo is created, if you have admin permissions. 

Follow below steps:

1) Go to your workspace

2) Open settings on your work space

3) On left panel you have the webhook 

4) configure the webhook -- Event as "create repository",

preferred commination channel url to which you want to get notification

5) secret key  

Let me know, if it worked.

Vikram P

Varsha Mungale December 11, 2024

webhooks option is available only after selecting a repo. I want that option at the project level. I do not see that option at the workspace level

vikram
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 Leaders.
December 11, 2024

Hi @Varsha Mungale 

Yes, the webhook option is available on repository level in UI

try this API for creating webhook on workspace level 

https://confluence.atlassian.com/bbkb/how-to-create-workspace-level-webhooks-1388151509.html#:~:text=To%20create%20Webhooks%20on%20the%20workspace%20level%2C%20we%20can%20utilize,Bitbucket%20Cloud%20REST%20API%20below.&text=In%20this%20example%20CURL%20command,tokens%20as%20an%20authentication%20option.

Just trying to understand, why do you want a notification, instead you can restrict users with permission's on your workspace right. 

Vikram P

 

Varsha Mungale December 11, 2024

Yes Vikram, i have already done that. But there are 5 projects and 7 admins. One particular project is critical and all 7 admins have been instructed not to create new repos in this project. But it is not possible to rely on human memory :-) Hence the notification requirement. Will check the link as well. Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events