-
Notifications
You must be signed in to change notification settings - Fork 9
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
Understanding of "Unrelease" section #13
Comments
I read your "hallmark" docu and now better understand your workflow. It make sense. In the context of "Common Changelog" as a standard I would argue that "Unreleased" sections should be allowed. They might not making sense in your workflow but in mine. And your workflow do violate another general or often read rule: Don't create your changelog based on commit messages. It is a rule for beginners. In your specific case you do rewrite and rephrase your commit messages in the changelog. This is OK. But this won't work for a beginner or a beginner do not understand the diff between a commit message and a changelog entry. I assuming this is the reason why you often read that beginner rule. I will try "hallmark" in one of my one-man-projects and maybe adapt it later in Back In Time where I have to convince a bigger team. ;) I appreciate your work and your effort. It really adds something to the FLOSS universe. |
Fair enough. I'm somewhat open to restoring the "Unreleased" section, as an optional feature. But, I don't really like to make commit hashes optional because as a developer reading changelogs I find them to be essential in understanding what really changed (language has its limits, code is less ambiguous).
I actually recommend it. Writing changelogs has helped me to write better commit messages and vice versa. Generating a changelog from commit history is by itself not a problem, and can increase productivity for both the writer and reader (being able to recognize a change in different contexts). |
Now knowing "hallmark" I do understand your workflow. I will try the without-Unrelease-section-but-hallmark-workflow in one of my tiny one-man projects. Off topic: |
The Common Changelog format for references (to issues and commits) is an extension of how GitHub inserts PR numbers into commit messages. For example, if you squash and merge a PR called
Since recently, hallmark also parses git trailers. For example, if the original commit message was:
Then hallmark would turn it into:
|
I agree that an unreleased section should be allowed. Django uses such a section but includes the next upcoming version, which I find useful. E.g.: # Changelog
## [5.1.0] - UNDER DEVELOPMENT
### Changed
- ...
...
[5.1.0](https://github.com/repo/repo/releases/tag/5.1.0) The URL to I also think it's not too much to ask contributors to add to the changelog. If they mess it up in the PR, they can always get feedback and improve the entry. After squashing, these "fixed ..." commits will not clutter the git history anyways. Any thoughts are welcome! |
Hi,
I try to understand some details.
I know the FAQ entry about the fact that common changelog do not have an "Unreleased" section on top of the changelog compared to keep a changelog.
My primary question is how I should keep track of changes in the main branch if I am not allowed to write them down to the changelog? I can not use the commit history because commits are for developers and machines and not for users. The changelog is for users not developers. That is the difference. Because of that difference I am also not allowed to just collect all commit messages and copy and paste them to changelog.
Your FAQ entry says in its first paragraph that it is "unproductive". I don't understand it. Can you explain it in more details?
I would argue that I don't use PR numbers or commit hashes in the changelog. I do use Issue numbers and they are present.
No problem with that. As a maintainer i do review every PR from first-time contributors. I say them to add a changelog or I modify their PR (via clone from their fork and push to it) directly before merging it. It is a usual workflow in my project.
I don't see this as an argument about not having an "Unreleased" section. Discussion and review of a change happens in the Issue first and ends in the PR. That is isolated. And as a maintainer I do have a bird's-eye. There is no PR without review. Even if there is no second reviewer I do review my own PRs after a cool down phase (min. a week).
The text was updated successfully, but these errors were encountered: