Imagine if code hosting platforms attached the full comment history of code reviews to merge commits as a git note.

git-scm.com/docs/git-notes

I wonder if you could roll this yourself as a GitHub action.

Show thread
Follow

you can! i just did it: github.com/OddBloke/store-pr-m

Extremely rough ATM, but on merge it will clone your repo, fetch metadata about the PR from GitHub (currently: the repr of the PyGithub PR object, but that's sufficient for the POC), store it as a note and push it back to your branch.

you can see this in action in github.com/OddBloke/test-repo; if you clone it then run `git fetch origin refs/notes/\*:refs/notes/\*`, you'll see the note in `git log`s output.

Sign in to participate in the conversation

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.