-
Notifications
You must be signed in to change notification settings - Fork 79
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
New command “niv changelog” #69
Comments
Hey. Thanks for creating |
@nomeata suggested outputting the equivalent of git log --oneline --first-parent oldhash..lasthash |
Or, more flexible, include a field in the sources config that contains a command line to run that outputs the changes, with placeholders for old and new rev. Then some projects can print a diff of a changelog, others a git log with specific flags or directories. |
Given that we now have Github Actions like https://github.com/knl/niv-updater-action that do most of the heavy lifiting, is there still a need for this in Niv? It adds a lot of complexity. |
I would argue that this functionality should be moved from |
I think I agree with @nomeata here. The one big problem, which is the same problem blocking #111, is that there is not way to get the list of commits from Git (say "metadata") without fetching the repo content. This is a big, big problem for e.g. repo like nixpkgs. I guess for both #111 and this we could make the metadata fetching optional, i.e. only add the timestamps or fetch the history when some CLI flag is set. Does someone want to have a go at that? |
It’d be ultra nice to display a diff of the changelog (
CHANGELOG.md
on GH) when updating a GitHub repo. Alternatively there could also be aniv changelog
command that just displays the changes since the last rev.The text was updated successfully, but these errors were encountered: