Hi team,
I’ve been meaning to bring this up for a while but held off since I know we’re all juggling a lot right now. Please don’t take this as a request to add more time to PR reviews. Instead, I’m hoping that addressing this will actually make the process easier moving forward.
It seems there’s been an increasing trend of squash-merging or rebasing pull requests with multiple commits that don’t contain meaningful messages about the changes. Unfortunately, I couldn’t find the section where we had linked examples of strong commit messages, but I’d like to revisit this topic.
To provide context, here’s a recent example (not to single anyone out):
* commit 6218a5e95648383ac354c820569e30b4fcb2e0e9
| Author: Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>
| Date: Mon Dec 9 12:07:22 2024 +0100
|
| GEOS-11625: Add "Challenge Anonymous Sessions" Option to AuthKey Filter (#8066)
|
| * AuthKey Filter checking for Anon session too
|
| * AuthKey Filter Stateless Anonym Challenge option
|
| * AuthKey Filter Stateless Anonym Challenge option
|
| * Documentation
|
| * Explicit imports
|
| * QA checks
|
| * QA checks
|
| * Cleanup the Security Context in order to try making the Windows build tests more stable
|
| * Workaround github windows build
|
| * Update doc/en/user/source/extensions/authkey/index.rst
|
| Co-authored-by: Andrea Aime <andrea.aime@gmail.com>
Many of these commit messages don’t clearly explain the changes, making it difficult to track the purpose of each update. Ideally, the commit history should be self-explanatory without needing to rely on JIRA or other external references, especially since our tooling might change in the future.
Here’s another example, this time with several commits:
* commit c026af0664b3473bcd81c8a23e029bcbec9f9e88
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Mon Jan 27 14:23:40 2025 +0100
|
| Revert LinkedList
|
* commit deb8d4442426f30e7d9c7cd46b3656d259b8fa7b
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Fri Jan 24 19:02:14 2025 +0100
|
| PMD
|
* commit 9e14ca30f3b6cffeb11e177354669ce877e7986d
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Fri Jan 24 15:01:48 2025 +0100
|
| Code review
|
* commit a279fd84806b94cd6b085731f75ad9354b1fa0ba
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Tue Jan 21 12:23:57 2025 +0100
|
| Add dedicated test to check insert order
|
* commit b6015478c395cbbc9a20c12ec68bf064b2a6c66d
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Fri Jan 10 14:33:33 2025 +0100
|
| Fix PMD
|
* commit cc559710c76378401746ad3019d9585cb6afcea0
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Fri Jan 10 13:17:49 2025 +0100
|
| Fix Syntax
|
* commit ec62cf708d781498581b9e0c00d25c636ae71c4a
| Author: ROPARTZ Erwan DTSI/DSI <erwan.ropartz@orange.com>
| Date: Fri Jan 10 12:46:20 2025 +0100
|
| Fix GEOS-11673: WFS-T] : Features order in transaction not respected
These kinds of entries make it hard to determine the intent behind each change. While we all occasionally create placeholder or intermediate commits (e.g., “tmp” commits), I believe we should prioritize finalizing clear and informative commit messages before merging.
My suggestion is that the developer requesting the PR review should be responsible for ensuring the final commit title and message are concise and descriptive. This would be similar to how we expect them to resolve merge conflicts.
I’d love to hear your thoughts on this—am I alone in this concern, or do you agree it’s worth addressing?
Cheers,
Gabe