-
Notifications
You must be signed in to change notification settings - Fork 160
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
Throw warning if CHANGELOG.md
file has not been modified
#1400
Conversation
.github/workflows/changelog.yml
Outdated
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "CHANGELOG.md"; then | ||
echo "CHANGELOG.md has been modified. Good job!" | ||
else | ||
echo "::error::CHANGELOG.md has not been modified. Please update the changelog." |
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.
I think a warning is fine, no? Sometimes, we have small PRs (hotfixes or whatnot - such as this one 🙂) that really don't need a changelog entry. It would be nice to not have to merge it with a red CI
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.
Indeed, let me see if I can make it a little bit less aggressive.
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.
Yeah, I think that's too subtle, and my understanding is that there is no way to show a warning in the PR itself (only failure and success). If so, I think we should show a failure and then the admins can merge the PR anyway if in fact the PR doesn't need the changelog updated.
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.
Indeed, I was hoping for some "yellow CI" of some sort, but if this is the only way to do warnings, let's do errors instead
24f3358
to
44cf789
Compare
831e0b4
to
5830a13
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.
Looks good! Thank you!
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! (Assuming we switch back to errors instead of warning)
In this PR I propose to add a warning if the
CHANGELOG.md
file has not been modified.