---
title: "Licensing code review and issue history to AI buyers"
description: "Pull requests, review comments and issues show why code changed. How they differ from the code itself, who owns them and what is removed before licensing."
canonical: https://plety-desk.vercel.app/about/records/code-review-and-issue-history
last-updated: 2026-11-25
---

# Licensing code review and issue history to AI buyers

By Plety. Updated 2026-11-25.

Code review and issue history can be licensed alongside a company's code or on its own. It is the record of why software changed: issues that report bugs and requests, pull requests that propose fixes, and reviewers' comments on them. AI developers use records like these to train and test coding systems. Ownership of the comments and the personal data in them are checked first.

## What is code review and issue history?

It is the discussion around the code rather than the code itself. An issue records a bug, a request or a task. A pull request, called a merge request on GitLab, proposes a change and can be linked to the issue it addresses.

GitHub's documentation describes three review decisions: a comment that gives feedback without approving or blocking, an approval that signals the change is ready to merge, and a request for changes the author should address before merging. Reviewers can also comment on specific lines and suggest exact changes, and the conversation stays in the pull request's timeline.

## How is it different from licensing the source code?

The code lives in a Git repository, while review and issue history lives in the hosting platform and is exported separately. GitLab's documentation lists what a project export contains: the project and wiki repositories, and separately issues with their comments, merge requests with their diffs and comments, labels and milestones. It leaves out CI/CD variables and encrypted tokens.

GitHub's backup guidance says a mirror clone captures the files and revision history, and points to migration archives, generated through its REST API, for other repository data. It warns that migration archives do not include all data related to a repository.

So a licence names both parts: the repositories and years of code, and the platform data that goes with them. Either can be licensed without the other.

## Why do AI developers use review and issue history?

Because it pairs a problem with the change that fixed it, and records people's reasons. Review threads show what a reviewer questioned, how the author answered and what changed as a result. SWE-bench, a benchmark for AI coding systems that its authors published in October 2023, consists of 2,294 software engineering problems drawn from real GitHub issues and the corresponding pull requests across 12 popular Python repositories.

The BigCode project's StarCoder2 paper (February 2024) says that, alongside its main collection of code, it selected other sources such as GitHub pull requests, Kaggle notebooks and code documentation. Private history from a company differs from public projects: it shows how a commercial team plans, reviews and ships work.

## Who owns review comments and issues?

Comments written by employees in the course of their work usually belong to the company. Section 11(2) of the Copyright, Designs and Patents Act 1988 makes the employer the first owner of copyright in a literary work an employee makes in the course of employment, subject to any agreement to the contrary.

Comments from anyone else need more care. An assignment of copyright from a contractor is not effective unless it is in writing and signed (section 90(3)). On public repositories outside users post issues and comments too, and GitHub's terms of service say each user owns their content. Those contributions are left out unless the company holds the rights.

Client projects follow the client contract. Issues and reviews on a client's code, or containing a client's data, stay out.

## What is removed from review and issue history?

Usernames, real names, email addresses, avatars and @mentions, which identify developers. Secrets pasted into issues, such as passwords, keys, tokens and log extracts, come out with them. So do customer details copied into bug reports, including screenshots and attached logs. Labels, milestones and timestamps can usually stay, since they describe the work rather than the people.

Some comments are about people rather than code, such as complaints about a colleague's work or notes on someone's absence. Those are treated as HR material and stay out. Reports of security weaknesses that are still unfixed in software customers use can be left out as well.

Extraction runs inside the company's environment, through the platform's export or API, by its processor or by the buyer's tool under a written contract. Plety never holds, views or passes on records, samples, logins or money.

## Questions

### Can we license issues and reviews without the code?

Yes. The licence lists which platform data, repositories and years are included, and the code itself can be left out.

### Are comments from bots and build tools included?

They can be, since they record each step of the review. They still have secrets and personal data removed, and the licence says whether they are in.

### What about issues on open-source projects the company ran?

Public issues include contributions from outside users, who own their content under GitHub's terms. Only the company's own contributions, or those it holds rights in, can be included.

## Sources

- [Copyright, Designs and Patents Act 1988, section 11 (first ownership of copyright)](https://www.legislation.gov.uk/ukpga/1988/48/section/11)
- [Copyright, Designs and Patents Act 1988, section 90 (assignment and licences)](https://www.legislation.gov.uk/ukpga/1988/48/section/90)
- [GitHub Docs, About pull request reviews](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews)
- [GitHub Docs, Backing up a repository](https://docs.github.com/en/repositories/archiving-a-github-repository/backing-up-a-repository)
- [GitLab Docs, project import and export (what a file export contains)](https://docs.gitlab.com/user/project/settings/import_export/)
- [GitHub Terms of Service (section D, user-generated content)](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service)
- [SWE-bench paper (arXiv 2310.06770, October 2023)](https://arxiv.org/abs/2310.06770)
- [Lozhkov and others, StarCoder 2 and The Stack v2 (arXiv, February 2024)](https://arxiv.org/abs/2402.19173)

## Read next

- [Licensing source code to AI buyers](https://plety-desk.vercel.app/about/records/source-code.md)
- [Licensing project management data to AI buyers](https://plety-desk.vercel.app/about/records/project-management-data.md)
- [Licensing records from a software or SaaS company](https://plety-desk.vercel.app/about/industries/software-and-saas-companies.md)
- [What do AI companies use business records for?](https://plety-desk.vercel.app/about/questions/what-do-ai-companies-use-business-records-for.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: herman.plety.official@gmail.com. Book a call: https://plety-desk.vercel.app/book.

General information, not legal advice.
