by no_protocol · 9y ago · 0 comments
If you have a better idea how to accomplish part of a suggested change, you can communicate that more clearly by making a patch and leaving a comment explaining why. GitHub should encourage this and allow the submitter some interface to easily incorporate that patch into his PR.
This is especially useful in situations where the only changes are in documentation or writing rather than code. Dealing with a dozen responses of "s/topy/typo/" should be as simple as clicking a few buttons to accept all the corrections. It would be less work for both sides.
The Gerrit maintainers are also working on the idea of comments that include a proposed fix, letting the author just click "apply" to patch the change in the editing interface.
Since I haven't used it, I'm not sure, but it seems like it would also help avoid the case of "Can you squash this before I accept it?" leading to pointless delays and extra work.
> Does it help avoid the case of "Can you squash this before I accept it?" leading to pointless delays and extra work?
That's https://github.com/blog/2243-rebase-and-merge-pull-requests; lets you choose squash and/or rebase as you merge.
```diff
diff goes here
```If you have five different suggestions, should that be five separate PRs to their feature branch? Probably? Or they will just need to modify or rebase out the commits they don't want.
Anyway, I just like all solutions where "doing the work" is encouraged over "talking about doing the work." Often, the doing takes less time for both sides.
Even if you added tons of tests, you'll get add more tests. It almost makes more sense to write tests and hold them, so you can respond with them.