Beyond that sometimes it’s super helpful to add comments as a human directly to a commit noting details about that specific change set that don’t make sense in the commit itself.
This is one of the most boneheaded moves I have seen GitHub make.
Beyond that sometimes it’s super helpful to add comments as a human directly to a commit noting details about that specific change set that don’t make sense in the commit itself.
This is one of the most boneheaded moves I have seen GitHub make.
If it was confusing to have these comments turn up "out of context" then maybe that's something that github could have improved instead, by visualising the context better.
If they're inside of PRs are they still commit comments? I'm thinking not, in which case maybe I never noticed those were a possibility.
E.g. here's git.git's first commit, with a lot of random (mostly garbage) comments: https://github.com/git/git/commit/e83c5163316
That wasn't part of a PR (GitHub didn't even exist then), and if it was it could be a part of many different PRs.
I really don't have a full overview of this GitHub change, but this general area is something other hosting providers have definitely struggled with.
I.e. how and when to treat a PR/MR as some holistic vertical component, v.s. being mostly incidental metadata about a "push" (or "potential push"), with the commits (and any comments) being the important way to view or think about individual changes, and anything in-between.
You can still add comments to an individual commit and view them from various pages. However, comments added this way will no longer surface in the timeline(s) of pull request(s) that happen to include the commit. This does not change anything about pull request review comments, including review comments added when reviewing a pull request commit-by-commit.