-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(version): option to add commit login username on each changelog entry, closes #248 #272
Conversation
Codecov Report
@@ Coverage Diff @@
## main #272 +/- ##
==========================================
+ Coverage 93.84% 93.97% +0.13%
==========================================
Files 142 144 +2
Lines 4105 4189 +84
Branches 848 874 +26
==========================================
+ Hits 3852 3936 +84
Misses 253 253
Continue to review full report at Codecov.
|
Hello @MiguelSOliveira Lerna-Lite is a smaller/lighter version of Lerna, you can read more about it on its readme page The full documentation on how to use it is available in the version --changelog-include-commits-client-login docs and below are 2 print screen sample of this feature used in Lerna-Lite project and another project of mine last release of Lerna-Lite with contributorsanother one of my project |
Description
Add new
lerna version --changelog-include-commits-client-login [msg]
option that will add commit remote client login username to each changelog commit line entry. This option will fetch all commits from the client remote server (only GitHub for now) and from that list it will find associated user login with commit changelog entry and will add them at the end of each changelog entry (when found), it uses the GitHub Graphql API to fetch all recent commits (since last release) from GitHub with only the fields we're interested in.Motivation and Context
closes #248, which is to add user login on each changelog commit line and that will indirectly create a Contributors list when creating a new GitHub Release
Example with default format
or a custom format (use any of
%a
and/or%l
)How Has This Been Tested?
added necessary unit tests and tested in
git-dry-run
mode to see changelog being updated as intendedTypes of changes
Checklist: