Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,372
Community Members
 
Community Events
176
Community Groups

How to restrict a deployment to be possible only from a specific branch using Bitbucket API?

Basically I want to be able to add the branch restriction shown in this article through Bitbucket REST API to automate the setup of new repositories:
https://bitbucket.org/blog/deployment-permissions-now-available-in-bitbucket-pipelines

Anyone who have done this before could share the details on how to achieve this?

2023-01-17_19-57.png

2 answers

1 accepted

1 vote
Answer accepted

Hi @silvr,

I'm afraid that this is not possible via API at the moment.

We have a feature request about this in our issue tracker:

You can add your vote (by selecting the Vote for this issue link) and leave a comment there to express your interest.

Kind regards,
Theodora

Thanks for the reply! I'll watch closely this issue.

You are very welcome, please feel free to reach out if you ever need anything else!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events