The code says what a system does. The commit says who changed it and when. Neither one says why the obvious alternative lost, and that sentence usually sits in a pull request thread, typed in a hurry by someone who has since changed teams.
I went looking for how badly that sentence dies in a platform migration. I expected a hole. The hole is smaller than the folklore says, and the damage lands elsewhere.
Where does the why actually get written down?
Not where you'd hope. Brunet and colleagues inspected the docs folders, wikis and websites of the 90 most popular GitHub projects and found no design documentation at all in 61 of them, 68 percent. Then they trained a classifier over 102,122 discussions from 77 projects and estimated that about 25 percent of the discussions in a project touch design. The reasoning was being written, just not in a document.
Design talk inside review is thinner than that. El Zanaty's group hand-classified 2,817 review comments from OpenStack Nova and Neutron and found 9 and 14 percent related to design, respectively. Of those design comments, 73 percent came with a suggestion. So the typical review is no design seminar. The minority that is one carries sentences nothing else holds, which is the expensive half of review that AI review made dearer.
Microsoft's 2013 study of tool-based review adds the other half. Finding defects was still the main motivation, but reviews also did knowledge transfer, raised team awareness and produced alternative solutions. "Alternative solutions" is the phrase I'd underline. The alternative that got rejected is exactly what a future maintainer will propose again.
Nygard opened his 2011 essay on architecture decision records with the same complaint: one of the hardest things to track in a project is the motivation behind certain decisions. His fix was a short file in the repository. Brunet's 68 percent hints at how often that file doesn't exist. The thread gets written instead.
Plainly: these studies support "the why often lives in review threads." None of them measures the share of decisions whose only record is a thread, and I found no study that does. That part is my inference, and the rest of this essay rests on it.
What does an importer carry across?
More than I assumed. I read the current documentation for the paths teams actually use.
GitLab's GitHub importer lists pull requests, assigned reviewers, reviews, review comments, replies to discussions and review suggestions. GitHub Enterprise Importer, coming from Bitbucket Server, lists pull requests "including comments, pull request reviews, pull request review comments at the file and line level, required reviewers, and attachments." GitLab's Bitbucket Server importer carries pull requests with comments, mentions, reviewers and inline comments.
So the thread itself usually survives. Then come the footnotes, and the footnotes are where a decision record gets hurt:
- GitHub into GitLab: comments from before 2017 land in separate threads, because the GitHub API didn't expose reply links back then. If a GitHub user can't be matched to a GitLab account by email, the project creator becomes the author and the importer amends the text with the original author. In that case reviewers and approvals can't be imported either. The importer writes comments saying someone was added as a reviewer, but the actual reviewer status and approval aren't applied.
- Bitbucket Server into GitLab: approvals, emoji reactions and task lists aren't imported. Multiple threading levels collapse into one thread. Comments GitLab can't anchor to a line become plain merge request comments. Images and attachments stay as links to the original Bitbucket URLs.
- Bitbucket Server into GitHub: commit comments aren't migrated. A pull request that was merged with its head branch deleted may throw a 500 error afterwards, because Bitbucket removed the git references and the objects couldn't be moved.
- GitHub into GitHub: the edit history of comments isn't migrated, and neither are references between pull requests and issues in other repositories.
One more line comes from GitHub Enterprise Importer's feature list: migrations continue past "non-critical" errors, such as not being able to move a single pull request comment. Read that twice. A single comment is non-critical to a migration tool. To the person who needed that one sentence in 2029, it was the whole point.
An import that succeeds proves the comments moved. It doesn't prove the reason survived with its context.
What gets lost when the importer isn't used?
Everything. This is the part that matters, and it follows from how git works.
Pro Git names three main objects: blob, tree and commit. A comment isn't among them. I checked the remote of a large public repository, astral-sh/ruff, with git ls-remote. It advertises roughly 19,800 refs/pull/N/head refs, so the commits of the pull requests are reachable. It advertises nothing that holds a word anyone said about them. Clone it, mirror it, push it to a new host, and you get the diffs without the arguments.
Gerrit is the counterexample worth knowing. Its NoteDb backend stores review metadata in the repository itself, under refs/changes/NN/NNNN/meta, with inline comments keyed to the patch set commit. The docs state it plainly: reviews are stored together with the code under review. Backups can snapshot the repository refs and take the review metadata along. Hosted platforms made a different trade, and few migration checklists mention it.
A review comment on a hosted platform lives in that platform's database, behind that platform's API. GitHub's REST API has an endpoint for listing review comments in a repository, and the docs note these are different from commit comments and from issue comments on a pull request. That's three kinds of comment to export, not one.
So what would I do before a move?
Three things, in order of how much they cost.
First, stop trusting "import completed" as a verdict. Read the migration log, then open five old pull requests you remember arguing about on the new host. If the thread is there but the approval, the reactions or the screenshots aren't, you've learned the real shape of the loss on your path.
Second, take a text copy of the threads that matter, in a format that doesn't need either platform. Not every pull request. The ones that touched the modules everybody is afraid of. A folder of JSON or Markdown in the repository is ugly and will still open in thirty years, which is more than I can say for a hosted URL. Twenty years of web history is not kind to those.
Third, and this is the one I'd actually push: write the reason at merge time, in the commit message or a decision record, instead of hoping it gets mined later. The git history moves with the code. The thread doesn't. If the reviewer's objection changed the design, that's one sentence in the squash commit.
When does this argument fail?
First, most comments aren't the why. The design share in the studies above runs from single digits to about a quarter, so a bulk export would mostly archive typo fixes and "LGTM." The cost of keeping everything is real, which is why I'd keep the few threads that changed a design.
Second, teams that already write decision records have moved the why into the repository, and for them a thread is a draft. If your records are honest, this essay is about someone else's team.
Third, my reading has a shelf life. These pages describe importers as they stand today. GitLab's 2017 threading note is a reminder that limits come from source APIs as much as from tools, so check the version you'll actually run.
And one question I can't answer for you. Think of the last design you were afraid to touch. Where is the sentence that says why it looks that way, and which system holds it?