Skip to content
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

workflow/semver-auto: rebase PR #2740

Merged
merged 1 commit into from Sep 1, 2023
Merged

workflow/semver-auto: rebase PR #2740

merged 1 commit into from Sep 1, 2023

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Aug 30, 2023

When testing if a PR is API backward compatible or not, we need to test
against the base branch, not the head against the PR branched is based
on.

Otherwise it can lead to the case where a breaking change was merged
after that a PR was proposed, go-apidiff will fail because it'll test
the repo against base_ref.

The PR needs to be rebased on base_ref so the actual compatibility can be
verified.

If the PR can't be rebase for any reason, we'll return a failure and add
the label semver:unknown.

@EmilienM
Copy link
Contributor Author

@github-actions github-actions bot added the semver:patch No API change label Aug 30, 2023
@coveralls
Copy link

coveralls commented Aug 30, 2023

Coverage Status

coverage: 79.131%. remained the same when pulling 3e0071f on label_commit into a6cf357 on master.

When testing if a PR is API backward compatible or not, we need to test
against the base branch, not the head against the PR branched is based
on.

Otherwise it can lead to the case where a breaking change was merged
after that a PR was proposed, go-apidiff will fail because it'll test
the repo against base_ref.

The PR needs to be rebased on base_ref so the actual compatibility can be
verified.

If the PR can't be rebase for any reason, we'll return a failure and add
the label `semver:unknown`.
@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Aug 31, 2023
@pierreprinetti pierreprinetti merged commit 1b40877 into master Sep 1, 2023
25 checks passed
@pierreprinetti pierreprinetti deleted the label_commit branch September 1, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch No API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants