-
Notifications
You must be signed in to change notification settings - Fork 229
Update the AUTHORSHIP and Maintainers' Guides to reflect co-author contributions #3904
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
Conversation
of any author who hasn't made any commits will be decided by all authors. The order can | ||
also be changed on a case-by-case basis. | ||
major release that has an associated paper | ||
(`git shortlog vX.Y.Z..HEAD -sne --group=author --group=trailer:co-authored-by`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that we inconsistently used git shortlog vX.0.0...HEAD -sne
and git shortlog HEAD...v0.4.0 -sne
in the old versions.
In the new version, I've changed them to git shortlog vX.Y.Z..HEAD
(tag before HEAD vs HEAD before tag, ..
vs ...
). Their differences are summaried below (from ChatGPT):
Command | Meaning | Use Case |
---|---|---|
git shortlog v0.14.0..HEAD |
Commits in HEAD but not in v0.14.0 |
✅ Changes since the tag |
git shortlog HEAD..v0.14.0 |
Commits in v0.14.0 but not in HEAD |
🔄 Unusual — usually empty if HEAD is ahead |
git shortlog v0.14.0...HEAD |
Commits in v0.14.0 or HEAD , but not both (symmetric difference) |
🔍 Compare diverged histories |
git shortlog HEAD...v0.14.0 |
Same as above — order doesn’t matter | 🔍 Same as above |
The three-dot version doens't work well for patch releases like v0.14.1
/v0.14.2
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, did not realize so far, that there are two and three dot versions 😅.
Co-authored-by: Yvonne Fröhlich <[email protected]>
With PR #3905 merged, the output is:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need to update this line
Line 259 in 662f97e
last release (e.g., use `git shortlog HEAD...v0.4.0 -sne`). |
Co-authored-by: Wei Ji <[email protected]>
It's already done (https://github.com/GenericMappingTools/pygmt/pull/3904/files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes it is, thanks!
See issue #3746 for context. Closes #3746.
This PR updates the AUTHORSHIP file and maintainers' guides to clarify that we consider co-authorship (e.g., PR reviews) when counting contributions. This is in line with what we're saying in AUTHORSHIP:
To consider co-authorship (PR reviews), we need to use the following command to count the contributions:
For comparison, the first 10 lines of
git shortlog -sne
's output are:For
git shortlog -sne --group=author --group=trailer:co-authored-by
, the output is:These numbers are still different from the numbers on the GitHub contributors page (https://github.com/GenericMappingTools/pygmt/graphs/contributors), but see #3905.