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

How long bitbucket stores pull requests and if they can be archived locally

Hello,

My company requires for specific and relevant reasons that all the reviews to be archived or saved in some sense. I have prior experience with BitBucket and i know the platform saves all the pull requests which were handled but i don't know for how long.

Is there a way to kind of archive the pull request and download it locally? Or save the pull request history for an indefinite period of time somewhere?

Thank you very much!

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 07, 2022

Hi @Iliuta Daniel Dogaru and welcome to the community!

In Bitbucket Cloud, pull requests remain on repos for as long as the repos exist.

There is no way for end users to delete PRs and we do not delete any PRs automatically after a certain period of time.

The only way of deleting a PR is if an admin reaches out to the support team and requests to have a PR deleted.

If a repository gets deleted by an admin, then any associated PRs will get deleted as well and there is no way to recover them in this case.

The pull requests page of a repo and of a workspace shows by default open PRs, but there are filters there to show all PRs (including merged and declined ones).

 

If you want to get PR info locally, we provide several API endpoints you could use:

and several more you can find here: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-group-pullrequests

If you have any other questions, please feel free to let me know.

Kind regards,
Theodora

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 07, 2022

I just wanted to add that we do have a feature request to allow users to delete PRs: https://jira.atlassian.com/browse/BCLOUD-22181

You may want to add yourself as a watcher if you would like to get notified when this is implemented so that you're aware of when this is possible. 

Suggest an answer

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

Atlassian Community Events