-
Notifications
You must be signed in to change notification settings - Fork 140
chore: update CHANGELOG for v0.68.2 #3183
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
|
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3183 +/- ##
==========================================
- Coverage 86.63% 84.21% -2.43%
==========================================
Files 52 53 +1
Lines 9550 9625 +75
==========================================
- Hits 8274 8106 -168
- Misses 1276 1519 +243 |
|
@germa89 - sections are autogenerated by the action based on the fragment categories. We should not be modifying the content. Otherwise, it defeats the automation purpose. Any enhancements you may want, please open an issue on the actions. Right now, the changelog action is based on the labeler approach and there are just a few categories. @klmcadams should implement support for branch naming convention or commit prefix as well so that users can decide which option to use. Ideally, the branch/commit style should be more reliable than labels. But it is not implemented yet. Also, from what I've seen you created the fragments manually. I understand the purpose (i.e. having some complete release notes) but the location of some of the PRs might not be the adequate consequently I just realized the issue wasn't created - but it was in @klmcadams roadmap. ansys/actions#510 |
|
@clatapie can we fix this Then, later we can make sure that the I guess we should delete this file if we are going to use the changelog action: https://github.com/ansys/pymapdl/blob/main/.github/release.yml @RobPasMue we do have
which is broken.. because we changed all the labels.. FML |
Interesting, I didn't know this existed. Nonetheless, the goal would be to directly inject the autogenerated changelog rather than to delegate it to GitHub - just so that everything is aligned. There is an issue open for this. ansys/actions#460
|
|
@RobPasMue this how we have been doing the github release notes in PyMAPDL: https://github.com/ansys/pymapdl/releases/tag/v0.68.0 So the
|
You are comparing apples and oranges - that's the GitHub release notes, and that's what GitHub will use to generate its release notes automatically, you can keep it if you want, that's up to you. We are using towncrier which is platform agnostic (GitHub, GitLab etc.) to generate release notes. The sections are defined by us via the pyproject.toml file config for towncrier. To standarize it and automate it - and as well, avoid misalignment... - we should be consuming the release notes generated by towncrier IMO. Why would you want to use towncrier release notes if you are willing to stick to the GitHub release notes? |
I think both are "release notes" hence they can be both related and compared. In fact, you mentioned an issue about automatise github release notes too. Additionally, I think town crier building the github release notes from the |
That's why I said apples and oranges, both are fruits but different fruits 😄 technically speaking, they got nothing to do.
You can keep both for sure (temporarily) - that's fine. You will use towncrier for the automated release notes in the docs and GitHub approach for the GitHub releases.. until we implement it in the action I guess. I wouldn't keep 2 independent release notes fr the long run....
But this is where you are probably not understanding the way towncrier works. Towncrier builds your release notes based on your fragments and your towncrier configuration - not based on GitHub's approach. It does not make sense to use that YAML file to build the release notes. |
|
One of the problems that Towncrier solves is the bootstrap of the release notes. Even if you could parse that We should support Towncrier as much as possible since, as Roberto said, is agnostic. I am not rejecting the GitHub notes, but just saying that we have full control on Towncrier. In addition, we can use these notes later in the GitHub release. I am in favor of enhancing the sections of the changelog. Also, I would recommend to add some logic based on labels for including and ignoring fragments. For example, "docs:fragment:skip" could make the changelog action not to run and avoiding adding the fragment. This could be useful in "smol" PRs for fixing typos and similar. It avoids cluttering the CHANGELOG file. |
|
I'm quite confident that I'm not being clear... The file So far, and here is probably where I'm not fully grasping the concepts, towncrier create in the release notes sections such as That is where the release file can be useful. To allow the github repo mantainers to "reuse" that file and have same sections, with same PRs in both, changelog and github release notes. Does it make sense what I say? Or am I totally losing the point?
The idea is to use the changelog action when github release notes are supported. Until then, I'm happy to do it semi-automatically.
I'm totally in favour of this. I want to also see how we can modify and improve the template. Pinging @klmcadams for feedback. |
Hmm gotcha - things are clearer now. We based it on the default labels provided by GitHub projects and the ones shipped by the ansys-templates because those are the labels used by 90% of our projects. Now, that's true - if you have your own labels, this might not work perfectly fine. That's why the commit naming convention and branch naming convention (conventional commits approach) made so much sense, because then we can remove the label handling. I think I wasn't understanding previously your point - apologies for that part. Using different labels to categorize the fragments is an option, that's true. However, I still think that the approach is not that standard in that case. Anyway... I was thinking about other options too:
changelog-fragment:
...
steps:
- uses: ansys/actions/doc-changelog@v6
with:
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
added-labels: [enhancement, feature]
fixed-labels: [bug]
dependencies-labels: [build, dependencies]
To be true - all of them need implementation 😄 |
|
Or a dedicated YAML file - that could also be an option. But I'd avoid this. If this were to be the case, I prefer to delegate it to the If we did choose to use the |
No apologies needed :) Regarding your comment:
I think the |
Ah... yes and no. Using the conventional commits would allow us to hardcode the sections so to say, and force all to use the same convention. We really need to push for uniformity @germa89 - we can't have everybody doing whatever they want 😄 |
Well, I agreee... partially... I do not think we need to reach the level of enforcing certain sections on release notes (should we @MaxJPRey?). At the end of the day, most of us are going to use the same notes, maybe just some sprinkles here and there to fit the project better. Uniformity is good I agree... but uniformity is not identicalness. All projects are not the same, although the framework is. |

Update CHANGELOG for v0.68.2 and remove .md files in doc/changelog.d