-
Notifications
You must be signed in to change notification settings - Fork 819
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
Generate changelog? #1430
Comments
So far @pnorman and I are sending manually generated messages to talk and dev. See for example this message. I think the manually generated list is much more pleasant to read. For someone wanting more details, we link to the full list of commits. Generating the change log manually also has the advantage of being able to combine multiple similar changes into one line, and on the other hand to expand large change requests (such as the water-features on) in multiple lines. The target audience of the messages to talk and dev might be a bit different from the target audience of a changelog, though. For example, I don't mention internal refactoring that doesn't have effect on rendering. With respect to this particular tool: it looks at the date a commit is authored, not when it is merged, to decide to which version a PR belongs. That means that some PRs, for example 'add rendering for amenity=car_rental #1388 (nebulon42)', are classed in the wrong version. I'm not sure if it's possible to change this behaviour? In any case, compiling the list of commits into a human-readable changelog is not much work (not more than 30 minutes), and in my opinion is more helpful than a mechanically generated changelog. Of course. there is no reason we cannot have both. |
I was thinking of opening the same issue... I'd rather use the manually generated messages, as they're a selection of what we consider significant. I can combine all my pre-hstore SQL cleanup PRs into one message. I do note that the generator added #1342, which was a PR we didn't merge. |
I do support the idea of a changelog, even if it is auto-generated. There are definitely cases when it is useful to have a comprehensive overview of (all) issues fixed or stuff changed in a specific version / release. I am not to bothered with the discussion of auto-generated versus manual, the auto-generated version will find its usage too... as long as it is accurate, which may be an issue considering the remarks by @math1985 and @pnorman... |
I opened github-changelog-generator/github-changelog-generator#256 |
Hi! The last version is automatically exclude issues, that not-related to change log (any issue, that has label As I can see - you are using a lot of custom labels for issues. |
I generated a changelog at https://gist.github.com/pnorman/962619427ba90e134873 A few observations
|
The seperation of pull request and issues is IMO not helpful with our many changes. If a PR closes an issue it should be only listed below the PR.
@skywinder should i open a corresponding issue on your project? |
|
@HolgerJeromin I believe this issue is already exists: github-changelog-generator/github-changelog-generator#67 But I don't know how to resolve it yet. |
You know the PR number (you write it at the end), and in it there must be the magic word "fixes #xy, superseed #xy, and others" in the commit title or comment. |
This was an issue that was incorrectly showing up when github-changelog-generator was run by @gravitystorm back in March. |
github-changelog-generator has been further developed in the last year, and so I want to resurrect this task. There's a variety of options to use issue/pr tags to improve the results, so I'm going to try it out on a branch and see what results I can get nowadays. I'm keen to get the changelog working since we're going to be doing more unusual things - changing the database schema, moving to mapnik 3, etc over the next few months. |
@gravitystorm feel free to ask me, if you need any help with this tool. |
I've pushed an initial version to https://github.com/gravitystorm/openstreetmap-carto/blob/changelog/CHANGELOG.md I think we can make this work, although there's a few problems with the output that need work:
My next work is going through each of the entries in the changelog. If there's an incorrect entry then either:
Help is welcome in going through the changelog. When we're happy with our setup, we can merge into master. |
There is also one social problem. wontfix is rather about a real problem that is unfixable/not worth fixing (like #934). Tagging feature requests as invalid will be inflammatory and encourage irritation (nobody like to see rejection of their proposal, adding "invalid" tag on top will make it even worse). I propose to keep "invalid" label for something that makes absolutely no sense to appear here - as it applies to other projects, is caused by invalid data (like #2079, #1887). Maybe create a new label "rejected"/"refused"? Note, I am not a native speaker and it may be purely my personal preference to see "rejected" as gentler than "invalid". |
Do you have an example of a closed issue that should be neither wontfix nor invalid accoridng to you? |
I would not expect #2064 to be tagged as wontfix. For me "wontfix" means that there is some problem that will not be fixed. Though I see nothing wrong in using it for rejected feature requests - difference between "there is a real problem here but it will not be fixed" and "it will not be fixed as it is not fixable - maybe for technical reasons, maybe because there is no problem in the first place" is not significant. |
I'm interested in coming up with better tags to describe the different situations. I agree that #2077 - |
BTW, it may labelling easier to use also "enhancement" label for accepted issues that need/needed fixing. This way https://github.com/gravitystorm/openstreetmap-carto/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+-label%3Aenhancement+-label%3Aduplicate+-label%3Awontfix+-label%3Ainvalid+-label%3Abug+-label%3Adeclined+ will display only issues that need additional labels. |
Thanks @matkoniecz for all the issue labelling - I've updated the changelog today and a lot of things have disappeared. I've also added the "declined" label as an alternative to "wontfix", and there's support for this label in the config file. Finally, I've found github-changelog-generator/github-changelog-generator#304 which is the same problem that we're having, with everything appearing in the v2.37.0 entry |
I do absolutely understand why to automatically generate a change log. But as some already said, I feel that a manual change log is significantly better. A changelog should be at a significantly higher level than at PR level. Often, it is many commits and PR per change. Read more on http://keepachangelog.com/ |
Just for your information: https://www.conventionalcommits.org |
When I find other projects without a changelog, they annoy me. But I certainly don't want to maintain one by hand - that'll just slow down the release process and is too boring and too much effort.
I found https://github.com/skywinder/github-changelog-generator which looks promising. We operate pretty much exclusively through issues and pull requests, so it can pick up almost all that we do.
I've generated an example using the option
--no-issues
and it's at https://gist.github.com/gravitystorm/6ecdd3ec6d5656fa03b6 . I'm not against issues showing up, but I didn't like seeing the ones that were closed wontfixWhat do people think? Is it a good idea to have a changlog, and if so, is this tool appropriate?
The text was updated successfully, but these errors were encountered: