Skip to content

Compare HEAD with merge-base instead of main in semver-check#729

Merged
jdm merged 1 commit intoservo:mainfrom
simonwuelker:workflow-base-rev
Feb 24, 2026
Merged

Compare HEAD with merge-base instead of main in semver-check#729
jdm merged 1 commit intoservo:mainfrom
simonwuelker:workflow-base-rev

Conversation

@simonwuelker
Copy link
Copy Markdown
Member

The semver-check CI job compares two revision of html5ever, main and HEAD to see if any breaking changes occured. However, if the PR author hasn't rebased on top of main then main may contain changes not in the PR branch, causing the V-breaking label to be applied incorrectly. That happened in #724.

Instead, we now compare with git merge-base HEAD main which is the most recent common commit.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Copy link
Copy Markdown
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix.

@jdm jdm added this pull request to the merge queue Feb 24, 2026
@github-actions github-actions Bot added the V-non-breaking A non-breaking change label Feb 24, 2026
Merged via the queue into servo:main with commit 803ad9e Feb 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-non-breaking A non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants