Platforms

What data in GitHub could be useful to a buyer

GitHub can hold useful examples of diagnosing bugs, reviewing changes and testing repairs. A buyer would need the problem, the relevant code versions, the reasoning and an observable result joined together. Repository size or a count of merged pull requests does not show how many usable cases you have.

Choose a task before counting repositories

A software team could investigate its authorized GitHub history for code-review evaluation, bug-repair training or internal search. These uses need different records. Reviewing a proposed change requires the code and requirements available at that moment; learning from a repair also needs the later patch and evidence of what it changed. These are possible tasks, not evidence that an external buyer wants your repositories.

Start with one repository and one question: can an assistant identify a missing edge case before a human reviewer points it out? A pull request (PR) is a proposed change. Its discussion, changing code and test runs can form a useful case if you can reconstruct what was visible before the review.

Map the code, discussion and execution evidence

Use this map to ask the repository maintainer what is actually retained. The suggested links are preparation requirements for the review task, not a claim that one GitHub export supplies them all.

EvidenceWhat to retainWhat it cannot establish alone
Repository historyRepository identity, full commit identifiers (SHAs), parent commits, file paths, relevant source and tests; record large files managed with Git LFS and code referenced from other repositoriesA file snapshot cannot explain the review discussion or show every earlier attempt.
Issues and pull requestsRepository plus issue/PR number, problem text, dates, base/head SHAs and explicit links; keep ordinary comments, reviews and line comments distinguishableA closed issue or merged PR does not establish a successful repair.
Review reasoningReview ID/state, submission time, comment body, path and referenced revision; preserve replies and original locations where availableAn approval is a reviewer decision, not a test result.
Execution evidenceWorkflow/run identity, attempt, tested SHA, workflow definition, dependency versions, logs and permitted result filesA green badge without the tests and tested version does not show whether the relevant behavior was exercised.

A fictional review case: commas inside a CSV field

This entire example is fictional. The identifiers A1, B1 and B2 are short labels for full commit SHAs, not real commits. In repository demo-importer, issue #41 asks for a CSV importer that supports quoted fields. PR #58 initially splits every line at each comma. The existing tests use only unquoted fields, so they do not expose the mistake. The base is the starting revision; the head is the proposed revision at that point in time.

SequenceEvidence in this fictional caseWhat it supports
Before reviewIssue #41, base A1, proposed head B1, diff and existing testsThe requirement and initial implementation can be compared.
Human reviewReview R1 on B1 points to the split operation: a quoted address containing a comma becomes two fieldsA documented reason for requesting a change, linked to the code being reviewed.
RevisionHead B2 replaces the split operation and adds a regression test, which checks the previously missed quoted-field behaviorThe team responds with a specific implementation and test change.
Controlled checkRun #901 fails on B1 with the new test added as a recorded test-only overlay; run #902 passes on B2. Both outputs and environments are retainedEvidence of this test distinguishing the versions. The B1 SHA identifies the source before the test overlay, not the complete tested file set.
Later statusPR #58 merges; no production import result is retainedA merge is known. Production reliability, user benefit and coverage of all valid CSV inputs remain unknown.

Build the input from what was known before review

For this evaluation, give the assistant issue #41, A1, the B1 change and the existing tests. Ask it to identify a concrete input that violates the requirement, explain why and cite the relevant code. A useful answer notices quoted commas and proposes a revealing test. Do not require it to reproduce the human reviewer’s wording.

Withhold R1, B2, the new regression test and later run results from the assistant. Those records help an evaluator judge the response. Save an explicit input list and cutoff time; a current PR page that already shows the reviewer’s answer is unsuitable as the earlier input. If you cannot recover the earlier issue text, mark that gap rather than assume its current wording was available then.

The later test outcome supports a narrow correctness observation. It does not prove the patch handles every CSV rule or that the assistant would have made the repair. Keep all versions of PR #58 and related duplicate/fork cases in the same group when separating training and evaluation data so a near-identical solution is not supplied during training and then counted as unseen test work. Record human, bot and AI contributions where known; do not guess authorship from an account name.

A repository backup is only one part of the collection

GitHub documents a mirror clone for repository revision history, a separate git lfs fetch --all for LFS objects and a separate clone for a wiki. Its migration archives contain selected metadata, with stated omissions including LFS objects, discussions and packages. Choose backup coverage for each needed material; do not label a source ZIP or clone a complete collaboration archive.

For an authorized collection, have the maintainer check whether the exact commits, required large files and any referenced external or submodule content are available. Save the retrieval time and method. These instructions are based on public documentation; no GitHub account, repository export or private artifact was tested.

Sources: Backing up a repository

Check issue, review and comment coverage separately

GitHub’s repository-issues API defaults to open items; choose the intended state, such as all, when past closed cases matter. Its results can include pull requests, identified by a pull_request key. Avoid counting the same item twice by matching repository and number, and preserve object type: an issue API ID is not interchangeable with the pull request API ID.

The pull-request API supplies PR-specific records. Ordinary discussion comments use the issue-comment API; reviews and comments attached to lines of a diff have separate endpoints. A collection containing only PR titles and bodies therefore does not establish that review reasoning survived. Review-comment responses include commit references, file paths and original locations that help interpret comments after the code changes.

List responses can be paginated. Ask the extractor to follow the documented next links and retain state filters, endpoint choices and failures in its collection manifest. For public resources, the cited read endpoints allow unauthenticated requests; private issue and PR access requires the relevant read permissions. Authentication and repository access still do not authorize licensing the contents. No single endpoint here promises every edit, deleted record or complete historical screen state.

Sources: REST API endpoints for issues, REST API endpoints for pull requests, REST API endpoints for issue comments, REST API endpoints for pull request reviews, REST API endpoints for pull request review comments, Using pagination in the REST API

Look for the tested version before trusting a green result

GitHub says signed-in users with repository read access can download workflow artifacts before expiry. Build logs and artifacts default to 90 days of storage, with configurable retention. Check the actual repository settings and surviving files; do not infer that an old merged PR still has its output.

For the fictional case, match run #902 to B2 and preserve the quoted-field test output, not just its success label. Record reruns as separate attempts. A skipped test, a job that checks formatting only or a run against another commit cannot establish this repair. If output has expired, retain the gap. Any newly authorized rerun is a new observation with its own date and environment, not a reconstruction of the original result.

Sources: Downloading workflow artifacts

Inspect a case before promising a collection

Ask the repository maintainer and the records owner to complete this check together. Use authorized inspection first; there is no need to send source code or comments to a potential buyer to find out whether these links exist.

  • Count repositories, PRs, comments, test runs and complete cases separately. Bytes or tokens measure volume; they do not measure how many decisions can be reconstructed.
  • Fictional inventory: 15 PRs inspected; six meet this review-task definition, four lack the earlier input, three lack result evidence and two have unresolved sharing authority. These disjoint example categories sum to 15; they are not buyer minimums.
  • Report covered dates, languages, test frameworks, selection rules, collection date and missing record types. Preserve a manifest linking each case to the included objects and file hashes.
CheckEvidence to recordDecision if missing
Earlier inputProblem text as available then, cutoff time, base/head SHAs and permitted source filesNarrow the task to what can be established; do not invent an earlier state.
Review linkageReview/comment IDs, timestamps, path and referenced SHA; separate bot and human records where knownUse the case for another task or exclude it from review-reasoning evaluation.
Observed resultTest identity, source SHA, any test-only overlay, attempt, environment and outputLabel outcome unknown; merged is a separate status.
ReproducibilityDependencies, LFS/submodule coverage and a documented safe test procedureDescribe the missing dependency; do not call an untested case reproducible.
CoverageInspected cases, qualifying cases and reasons for exclusions; include rejected and unresolved changesReport the selection limits rather than generalize from successful merges.
AuthorityResponsible owner, component licences, contributor/client obligations and approved intended useKeep the affected material out of a transfer until that question is resolved.

Check code rights, personal information and secrets separately

GitHub explains that a public repository without a licence remains subject to default copyright restrictions; the platform’s viewing and forking rights do not amount to a general redistribution licence. Have the responsible owner examine the licences and notices for the included versions and components, plus contributor, employment and client agreements. A top-level licence label does not settle authority over every issue attachment, conversation or third-party file.

Comments and logs may reveal names, email addresses, customer details, internal systems or security vulnerabilities. For Canadian organizations subject to PIPEDA, the privacy regulator’s Principle 5 limits use and disclosure to identified purposes, subject to consent or legal exceptions, and addresses retention. Have the privacy owner determine which law and permissions apply to the proposed training, evaluation or retrieval use. Removing account names alone does not establish anonymity.

Inspect historical content and artifacts for secrets as well as current files. GitHub advises revoking or rotating exposed credentials first and warns that rewriting history changes commit identifiers. Keep any sanitized derivative separate from the restricted original, with an access-controlled mapping of source IDs, removed material and changed hashes. Do not claim the original SHA identifies rewritten bytes or publish the mapping if it reveals the removed information.

Sources: Licensing a repository, PIPEDA Fair Information Principle 5 – Limiting Use, Disclosure, and Retention, Removing sensitive data from a repository

Prepare a task description before a buyer sample

A software-evaluation team could assess the quoted-field cases for pre-review defect detection; an internal engineering team could use permitted histories to retrieve similar failures. Training on completed repairs is a separate proposed use. This guide verifies no external procurement program, purchase interest, price or permission for any of those uses.

The next deliverable is a short inventory without private code: the proposed task, one case’s record map, measured coverage, test evidence, exclusions and unresolved authority. If the first case cannot be reconstructed, decide whether a narrower task is still defensible before extracting more. Use the related provenance and AI-licence guides to frame the evidence and permitted-use questions; the bug-fix workflow guide develops the repair case further.

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.

  1. Backing up a repository ↗GitHub · Checked

    Mirror clone, separate LFS/wiki backup and selected-metadata migration omissions.

    Location: Backing up with Git CLI; wiki; migration archives

    Public documentation only; not an account extraction test.

  2. REST API endpoints for issues ↗GitHub · Checked

    Repository issue state filter, PR overlap, identifier distinction and Issues read permission.

    Location: List repository issues: note, permissions and parameters

    Returned accessible records do not establish a complete edit/deletion history.

  3. REST API endpoints for pull requests ↗GitHub · Checked

    PR-specific records and Pull requests read permission; public-resource authentication exception.

    Location: About pull requests; List pull requests: fine-grained access

    Public documentation does not verify a particular collection.

  4. REST API endpoints for issue comments ↗GitHub · Checked

    Ordinary issue/PR comments are separate from review comments.

    Location: About issue and pull request comments

    This endpoint alone does not supply all review records.

  5. REST API endpoints for pull request reviews ↗GitHub · Checked

    Separate review records with state, body, submitted time and commit reference.

    Location: About pull request reviews; List reviews response example

    A review state is not a test or deployment outcome.

  6. REST API endpoints for pull request review comments ↗GitHub · Checked

    Diff comments differ from ordinary comments; responses retain code-location and commit references.

    Location: About review comments; List review comments response example

    Fields cannot establish missing or deleted earlier content.

  7. Using pagination in the REST API ↗GitHub · Checked

    List responses may return a subset; use next-link pagination.

    Location: About pagination; Using link headers

    Pagination completeness must be checked in the actual extraction.

  8. Downloading workflow artifacts ↗GitHub · Checked

    Signed-in repository readers can download unexpired artifacts; default log/artifact retention is 90 days and configurable.

    Location: Who can use this feature; retention paragraph

    Actual repository retention and surviving output were not inspected.

  9. Licensing a repository ↗GitHub · Checked

    Default copyright without a licence; public viewing/forking rights differ from broader reuse.

    Location: Choosing the right license

    General platform guidance, not clearance of a proposed dataset or legal advice.

  10. PIPEDA Fair Information Principle 5 – Limiting Use, Disclosure, and Retention ↗Office of the Privacy Commissioner of Canada · Checked · Source dated Aug 13, 2020

    Limits on purpose, use, disclosure and retention under PIPEDA.

    Location: Your responsibilities; Date modified footer

    Applies where PIPEDA governs; no determination about a particular organization or record.

  11. Removing sensitive data from a repository ↗GitHub · Checked

    Revoke/rotate exposed secrets first; rewriting history changes commit hashes.

    Location: About removing sensitive data; Side effects of rewriting history

    This guide does not perform repository cleanup or establish that removal is complete.