-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: "Committing your code" in "Contributing to pandas" needs update #48035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ping @noatamir |
Thanks for the issue @marenwestermann!
Therefore, I would suggest removing this from the commit section, and clarifying it in the PR section, since it is a part of the PR step. WDYT
I am uncertain if there are strong conventions to be clarified. In my experience as a contributor so far, commit messages are easy going. But I'd better let the maintainers chime in on this, as I might be unaware of previous discussions or preferences.
|
We are using the title of the PR when merging into main, so the actual commit messages on the branch itself don't matter much. Maybe we can clarify this. |
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/development/contributing.html#committing-your-code
Documentation problem
In the "Committing your code" section of the "Contributing to pandas" documentation there are two problems.
1. It is said:
However, I don't see that this convention is still in use. It seems to be common to reference the respective issue in the PR description, such as "closes #1234".
2. It is further said:
The command
git commit -m
raises an error that no commit message is given. There are two possibilities here:git commit -m "commit message comes here"
, which users can do to have a single line commit message. It is possible to have a multi line commit message this way, but this doesn't seem to be used frequently.git commit
which opens an editor for the user where they can write a multiline commit message as described above. However, since the project seems to almost always use "squash and merge", I'm not sure how those commit messages are handled.Suggested fix for documentation
For issue No 1:
Since the convention of including the respective GitHub issue in the commit message doesn't seem to be in use anymore, the documentation for this could be removed.
For issue No 2:
It would be nice to make the documentation of how the commit messages should be written/ structured consistent with the conventions of the core developers.
I'm happy to update the documentation myself after decisions on how to proceed have been made.
The text was updated successfully, but these errors were encountered: