What data in Bitbucket could be useful to a buyer
Bitbucket can supply useful code-review and repair cases when a proposed change can be connected to its discussion, revisions and checked result. A repository’s size or merged status cannot show that chain. Inspect Git content, collaboration records and build evidence separately.
Start with a change someone could assess
A possible buyer task is testing whether a coding assistant can spot a missing edge case in a proposed change and explain what evidence would resolve it. The useful material is the code as it stood at review time, the reported problem, the reviewer’s concern and the later response. Code search, model training and review evaluation need different selections and permissions; this guide uses review evaluation to make the inspection concrete.
Bitbucket Cloud is the main access example below. Data Center has a separate, version-dependent extraction route. First ask the repository owner which product and version holds the records, where issues are tracked, and whether tests run in Bitbucket Pipelines or another build system. A Jira link is a route to context, not the Jira report itself.
Keep three kinds of evidence connected
Use the following as a collection map. These are records to look for, not a claim that every repository contains them. A pull request, or PR, is the proposal to bring a code change into another branch; its conversation is additional evidence beyond the Git commits.
| Evidence layer | What it contributes | Identity and gap to check |
|---|---|---|
| Git content | Files at known revisions, commit history, branches and tags | Keep repository identity and full commit hashes. Check that required earlier revisions and any LFS file contents are available. |
| Pull-request collaboration | The proposal, reviewer discussion, tasks and recorded decisions | Keep repository plus PR ID, comment IDs and reply links, dates, relevant file paths and the code revision each comment concerns. |
| Build and external context | Test execution, outputs, issue requirements and later operational evidence | Keep pipeline and step IDs or external build IDs, tested commit, configuration, retained reports and tracker IDs. Record missing files behind links. |
Sources: Backup Bitbucket Cloud Git repositories, Bitbucket Cloud REST API: Pullrequests, Bitbucket Cloud REST API: Pipelines, Use Git LFS with Bitbucket
Fictional case: a green build misses a replay
Every record and result in this example is fictional. PR 71 in repository “invoice-import” proposes retrying an interrupted import. Labels A and B stand for different full commit hashes; they are not valid hashes or Bitbucket field names. All times below are UTC on the same illustrative day.
| Time and evidence | What changed or was observed | What follows from it |
|---|---|---|
| 09:00 — requirement R-12 in the separate tracker | An interrupted upload may be retried; an invoice already imported must not appear twice. | The required behavior includes replaying the same invoice. |
| 10:00 — PR 71 at revision A; pipeline run 301 | The patch retries uploads. Its retained report shows tests for a first upload, with no replay test. | Those passing tests do not demonstrate the duplicate-prevention requirement. |
| 10:20 — reviewer comment C-9 on revision A | The reviewer asks what happens if the first request succeeded but its response was lost. | The discussion identifies a concrete missing scenario before the revision. |
| 11:00 — revision B and retained runs 302–303 | A new replay test fails against A, then passes against B after the patch adds a duplicate check. Both reports identify the tested revision. | The recorded test distinguishes A from B for this scenario, within its test setup. |
| 11:30 — approval and merge record | The reviewer approves B and the PR is merged. No production observation is retained. | Review acceptance is documented. Production reliability and freedom from other defects remain unknown. |
Turn that history into a test without giving away the answer
Give the assistant R-12, the relevant files at A, the proposed diff and run 301’s report, stopping at 10:00. Ask: “What important scenario is untested, and what check would you request?” A useful response explains the lost-response replay, points to the requirement and identifies a test that would reveal duplicate creation. It should not claim the green build proves safe retries.
Keep C-9, B, runs 302–303 and the approval out of the input. They give an authorized evaluator later comparison evidence. Other defensible tests may exist, so reproducing the reviewer’s exact wording is not the goal. If only the final branch and approval survive, the case cannot fairly test what an assistant could infer before review.
Preserve failed attempts and declined PRs where permitted. A collection selected only from merged changes hides abandoned approaches. For training, distinguish human-written changes and comments from AI-generated material; for internal retrieval, fewer outcome records may suffice. These are proposed uses, not evidence that a buyer wants this collection.
Cloud: extract Git and review records separately
Atlassian’s Cloud backup guidance describes a Git mirror clone as retaining commit history and remote refs. That is a route for the Git layer, not a complete collaboration archive. Have the administrator use an authorized current authentication method; the backup article’s older credential examples are not an authentication recipe for this guide.
For collaboration, the Cloud REST API lists PRs under /2.0/repositories/{workspace}/{repo_slug}/pullrequests and provides separate routes for comments, activity, commits, tasks and diffs. The list defaults to open PRs. Specify the intended states, including MERGED and DECLINED when inspecting completed work; otherwise a historical collection can silently omit them.
Follow every returned next link until none remains. Record the filters and extraction time, then reconcile the selected PRs against the source. With API tokens, repository read and pull-request read scopes are separate; pipeline access is another check. Request the permissions needed for the chosen endpoints rather than assuming that successful code access proves review access.
An activity feed or current comment response does not establish a complete archive of every prior edit or deleted comment. Inspect whether the exact pre-review code and discussion state needed by the task can be recovered. If not, narrow the case or exclude it from that evaluation.
Sources: Backup Bitbucket Cloud Git repositories, Bitbucket Cloud REST API: Pullrequests, Bitbucket Cloud REST API: introduction
Check retained outputs and the Data Center boundary
Cloud Pipelines has separate API routes for runs, steps, logs and test reports. Inspect the actual retained output and its tested commit. A build-status badge or link can indicate a reported result while leaving the test content and environment unavailable.
Cloud Pipelines artifacts expire after 14 days. The documentation describes downloads from the pipeline result view and recommends separate storage for longer retention. For an older case, ask whether an authorized copy exists in the team’s artifact store. Do not infer that all logs share that expiry, or that an external CI service follows the same policy.
Git LFS stores pointers in Git while the large file contents live remotely. If a fixture or other large file is necessary to understand or rerun the case, verify the permitted content is present; a pointer file is not the fixture.
For Data Center, Atlassian’s 10.5 migration documentation describes an administrator tool for Data Center instances that includes Git, PR metadata, comments and attachments, but lists linked Jira issues, build status and tasks as omitted; LFS needs a separate migration. This is a migration facility, not a Cloud export procedure or a ready-made buyer package. Ask the administrator to compare the installed version’s coverage with the inspection card and provide a checked manifest before calling an archive complete.
Sources: Bitbucket Cloud REST API: Pipelines, Pipeline artifacts, Use Git LFS with Bitbucket, Export and import projects and repositories — Bitbucket Data Center 10.5
Inspect one PR before counting a collection
Have the repository administrator and an authorized reviewer compare one selected PR with the extracted files. Fill in this card using observed evidence; a blank means unknown, not “passed”. No private account or export was inspected for this guide.
| Card field | What to write down | Decision it supports |
|---|---|---|
| Scope | Cloud or Data Center/version; repository ID; extraction date; selected dates and PR states | Can another reader identify the source and selection? |
| Before and after | PR ID; full base and revision hashes; required files, LFS objects and dependencies present or missing | Can the reviewer inspect the same code that prompted the discussion? |
| Discussion | Comment IDs, parents, timestamps, file/revision context; tasks and activity coverage | Can the concern and response be followed without guessing? |
| Test evidence | Build/run and step IDs; tested hashes; retained report/log/artifact location; configuration and fixture gaps | Does the evidence support the specific test outcome being claimed? |
| Cutoff and result | Last event visible to the assistant; withheld later records; merged, declined or unresolved; production evidence present or absent | Is the evaluation answer hidden, and is its claimed outcome narrow enough? |
| Authority | Responsible owner; client/contributor and dependency review; sensitive exclusions; proposed training, evaluation or retrieval use | May the selected material be considered for that use or shared with that recipient? |
Measure review cases, not just repository size
For this task, count one case as a recoverable proposed revision with its requirement, relevant code, review response and supporting test evidence. Count PRs, commits, comments, complete cases and storage bytes separately. Several commits may form one case; one PR can contain multiple review decisions, which should not be presented as independent projects.
A fictional inspection of 15 PRs might find eight usable review cases, four missing the earlier code or discussion context, and three missing retained test reports. Those counts describe that example’s inspection, not buyer minimums. Report covered dates, languages, selection rules and the missing categories alongside your own counts. Keep related revisions together when dividing training and evaluation sets so the later answer does not leak into the test input.
Before preparing a shareable package, scan code history and build outputs for credentials, customer fixtures, personal details and confidential paths. Work on a permitted derivative copy, retain a private transformation record and stable replacement IDs, and check that necessary joins still work. If cleaning changes code or fixtures, label any later test as a new execution; do not pass it off as the historical run.
Use a permissioned inventory to decide what comes next
Software licences set conditions for reuse; public visibility or possession of a clone is not unrestricted permission. The software-licensing source below explains that distinction generally. Have the responsible owner check client contracts, contributor terms, dependencies and the specific proposed use. A licence for some code does not by itself settle the handling of review messages, issue content or test data.
Ask separately what may be disclosed, to whom, and whether any agreement covers training, evaluation, retention and onward sharing. No Bitbucket-specific buyer program or accepted offer is established here. A permissioned inventory can help a potential evaluator assess technical fit, but there is no evidence in this guide of demand, a price or eligibility for a particular buyer.
Start with the inspection card for one permitted PR, then repeat across a bounded mix of outcomes. If the pre-review code or test evidence is missing, decide whether recovery is possible or a narrower code-search task is useful. The related Jira and bug-fix guides explain the external context; the provenance guide helps document the chain from source to prepared version.
Sources: Licensing a repository
Sources and scope
Source checks support the statements identified below. Product access, contractual rights and suitability for a particular buyer still need to be confirmed for your situation.
- Backup Bitbucket Cloud Git repositories ↗Atlassian · Checked · Source dated Nov 9, 2026
A mirror clone retains repository commit history and remote refs.
Location: Solution → Single repository backup
Git backup scope only; legacy authentication examples on this page were not adopted. No account backup tested.
- Bitbucket Cloud REST API: Pullrequests ↗Atlassian · Checked
Separate pull-request, activity, comment, commit, task and diff routes; list defaults to open requests and supports repeated state filters.
Location: List pull requests; Get a pull request; List comments on a pull request; List a pull request activity log; List commits on a pull request; List tasks on a pull request
Documents current API resources, not recovery of every deleted, edited or earlier review state.
- Bitbucket Cloud REST API: introduction ↗Atlassian · Checked
API-token repository and pull-request read scopes are separate; collection traversal follows next links.
Location: Forge app and API token scopes → read:repository:bitbucket / read:pullrequest:bitbucket; Pagination
Scope names refer to API tokens and Forge, not a universal permission recipe for every authentication method.
- Bitbucket Cloud REST API: Pipelines ↗Atlassian · Checked
Separate pipeline, step, log and test-report endpoints; pipeline read scope applies to step logs.
Location: Get a pipeline; List steps for a pipeline; Get log file for a step; Get a summary of test reports for a given step of a pipeline
Endpoint availability does not establish retained evidence for any particular historical run.
- Pipeline artifacts ↗Atlassian · Checked
Artifacts can be downloaded from the pipeline result view and expire after 14 days; longer retention needs separate storage.
Location: Artifact downloads and expiry
The 14-day rule is for Cloud Pipelines artifacts; no identical log, external CI or Data Center retention rule is inferred.
- Use Git LFS with Bitbucket ↗Atlassian · Checked
Git LFS replaces large repository files with pointers to content on a remote server.
Location: Use Git LFS with Bitbucket → introduction
A Git pointer does not establish that the corresponding content is present in an extracted collection.
- Export and import projects and repositories — Bitbucket Data Center 10.5 ↗Atlassian · Checked · Source dated Mar 24, 2023
Data Center migration includes Git and PR material but excludes linked Jira issues, build status and tasks; LFS needs separate migration.
Location: Opening scope; Entities included in migration; Data/settings not migrated
Checked page is labelled Data Center 10.5 with a March 2023 modification date. Installed-version scope and extraction results still need administrator verification; not a Cloud export guarantee.
- Licensing a repository ↗GitHub · Checked
Software licensing governs reuse; public source access alone does not establish unrestricted software reuse.
Location: Choosing the right license
General software-licensing explanation; GitHub-specific platform rights are not applied to Bitbucket and no legal opinion on AI training is inferred.