-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ci(): Add a check for changes to changelog #8302
Conversation
I prefer the same and use committing the same |
For future reference could you write how to use the automated tool? |
npm run changelog is what we have right now, but is based on master changes, so is not valid for PRs changelog. |
updated contributing 695d2d2 |
@ShaMan123 is there something you want to think about or can you review this? |
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.
see comments
.github/workflows/build.yml
Outdated
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Code Coverage Report Updater |
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.
remove this line, copied by mistake
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.
- name: Code Coverage Report Updater |
.github/workflows/build.yml
Outdated
uses: Zomzog/changelog-checker@v1.2.0 | ||
with: | ||
fileName: CHANGELOG.md | ||
noChangelogLabel: Missing update to CHANGELOG.md |
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.
The naming of this option is confusing
From the docs:
The check can be disabled for a PR with a label. This label can be customized with the
noChangelogLabel
parameter.
https://github.com/Zomzog/changelog-checker/blob/master/action.yml#L12
So no need for it
I agree they should have added an option to customize the title
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.
mmmm but i have seen that going out in the console? let me check again
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.
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.
initially i tought this would be the message that goes on the github check section, when failed. Then i see it wasn't and moved on
CHANGELOG.md
Outdated
@@ -4,6 +4,7 @@ | |||
|
|||
## [next] | |||
|
|||
- ci(): Add a git hub action check for adding changes to CHANGELOG.md [#8302](https://github.com/fabricjs/fabric.js/pull/8302) |
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.
typo git hub
I have another thing I want ci to do in this scope. |
If we are going in that direction why not have an action run on PR merge to master that writes to the changelog the PR commit message which is meaningful always instead of doing it as part of the PR? |
I don't like automated commits. Is a changelog you have to add in the file, we should just do
You can do it, this is more a daily issue. |
OK I understand the missing piece. |
well since i applied all the requested changes i m using the admin power and merging. |
The flow till now is that i would increment the version at the moment of tagging, because i didn't want devs to read a new version number that didn't exist yet. Also until is release time you don't know which release number you will get, unless you release every single commit that for me is an overkill unless we talk about bug fixes. Fabric development has always been a gut feeling thing, today i fix this, today i add that, so one day you could have a patch or a minor, and always tried to keep at minimum the major releases now changing development flow is entirely possible, i don't like to release each commit and i don't like to have many active branches either. |
we can swap the master version to 5.99 now just so that we don't get confused |
I found a bot that will comment if the changelog hasn't been updated and is more configurable and verbose but is unrelated to tests so it seems |
This pr adds an additional check to verify if the user add the correct changes to the changelog.
The reason for this is that we often forget to add it.
Better some extra conflict on PRs rather than an empty changelog, there are automated tools that could pull out a changelog out of commit messages, we have one, but i personally do not use commits in a meaningful way and i use them more as save points rather than concise small changes. And i don't rebase, because i often mess up and i have better things to do.
So i squash and i do write manually a meaningful changelog line