-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 changelog check #2766
CI: add changelog check #2766
Conversation
4db9716
to
9acb347
Compare
I apologise for the messy commit log. You may want to use squash merge 😅. |
No worries :) Feel free to force-push to fix it! After a first code review it can be good to avoid force push though, to make incremental review easier. This seems like a good idea, but we need to make an exception for auto-merged dependabot PRs. Example: #2761. Either based on branch (starts with |
c869f59
to
dd41b6f
Compare
Rebased on |
Fetch the base branch and diff correctly - See: actions/checkout#160 Improve organisation Add some echo for easier debugging Fix bad variable syntax Clarify the double-print in the success case
dd41b6f
to
8b12fba
Compare
|
Ah shit. I think I messed up. |
fd311cc
to
eb09088
Compare
This is hard to verify before it's merged I suppose? So I'm tempted to merge it after you fix the comment so we can verify and iterate on it. |
Oh wait, right, it runs already (after you fix the bug) |
eb09088
to
b54c88e
Compare
I made sure this workflow errors properly before I added the changelog for this PR. So if it passes now (as it should), I think it should be mostly fine. |
@cyqsimon Hi! Any chance you could fix a bug in the script? Right now it uses the last commit in a PR to determine author. That will give the wrong author if a maintainer adds a commit to the PR. We likely need to use Example of where the check fail when it shouldn't: #2779 |
Arrrrgh. There's always an edge case that slips by. I'll take a look. |
This workflow ensures that every PR has a corresponding entry in CHANGELOG.md that includes the PR number and the submitter ID.