We had an interesting discussion tonight in the ROS2 SIG about contributing to a project.
I think it deserves some clarification.
There are two actors:
Let’s not focus on how annoyed or offended a Maintainer might be upon discovering that their code wasn’t perfect to begin with. Instead, let’s consider a normal, civilized process for handling this surge of unsolicited creativity.
First, the Contributor should identify a clean, working (i.e., tested) branch in their fork and review the changes they’ve made. This is usually the main branch. Tools like meld are great for comparing their code with the original.
Second, create a new branch — for example, pull_req_1 — based on your main to “freeze” the contribution. Any final adjustments can be made here (for example, removing overly creative comments left behind by Claude).
Next, it’s time to open a Pull Request (PR). There’s nothing scary about it — just a click and (optionally) a friendly description. It’s a good idea to allow the Maintainer to edit your branch; it’s isolated anyway and can be deleted later. Once you click “Submit,” the Maintainer is notified, and the wheels start turning.
At this point, the PR takes on a life of its own. It’s easily accessible in the Maintainer’s repository, with full support for comments, discussions, and code comparisons — which is, after all, GitHub’s main purpose.
Once the Maintainer accepts the changes, they are merged into their branch (usually main), and you will be notified. The PR remains as a closed record, but your working branch is now obsolete and should normally be deleted. You will clone the Maintainer's code and you both will be happy ever after - till the next PR, of course.
For examples of typical PRs, see:

--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hbrobotics/8F1A2DC9-7E64-4608-97E9-B21B479E7272%40gmail.com.