Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

iliuta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2022

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.
October 7, 2022

Hi @iliuta 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.
October 7, 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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events