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
Check if issue is mentioned in changelog. #457
Conversation
1f07c01
to
6df3e21
Compare
Codecov Report
@@ Coverage Diff @@
## master #457 +/- ##
=======================================
Coverage 95.49% 95.49%
=======================================
Files 20 20
Lines 2444 2444
Branches 420 420
=======================================
Hits 2334 2334
Misses 48 48
Partials 62 62
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
bcb7494
to
b7db0b8
Compare
Code looks good. I have 2 questions:
|
As an alternative to looking at commit messages, we could consider looking at the pull request comment via the Github API. This would likely mean that the check would be performed only in the Action, not in the release checklist. In a shell script, the PR comment can be extracted like: curl https://api.github.com/repos/gcovr/gcovr/pulls/457 | jq -r .body However, I have no strong preference regarding PR comment vs commit message as the source for these tags. My concern with commit messages would be that a PR with multiple commits could include both commits with changes that don't have to be mentioned in the Changelog, and other commits with changes that should be mentioned nevertheless. A PR message would be easier to change afterwards during review. The advantage of commit messages is that they can be checked locally and without network connectivity. But I do like that this PR introduces more structure into the CI pipelines! |
Of course.
This was the intention but I find this idea better:
Instead of using curl I'll try to use the available PR info in the pipeline and directly write the script there. I think the local check isn't realy needed because it is only needed for PR's and not for playing in the local clone. |
7c9ea42
to
68f4d9c
Compare
9cd2aed
to
84a8e1b
Compare
cbe856f
to
e4caa4d
Compare
31bc5f0
to
fd262e5
Compare
1c42eb5
to
ff90a32
Compare
Update release_checklist and add separate job in CI.
ff90a32
to
b328b45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Thanks for implementing this! Automating such checks will help future releases to be ready more quickly.
@Spacetown : please update documentation on this topic in https://gcovr.com/en/stable/contributing.html#how-to-submit-a-pull-request |
That's the documentation of the stable version. Please take a look at the latest source https://github.com/gcovr/gcovr/blob/master/CONTRIBUTING.rst#how-to-submit-a-pull-request |
Test was mentioned in #424. The check can be deactivated by adding the text "[no changelog]" to a single line in the comment.