fix(ci): Handle shallow clones in release script#358
Merged
Conversation
Detects shallow clones and fetches full history + tags automatically. Prevents CHANGELOG generation failures in CI environments with fetch-depth: 1.
3947bd0 to
e07fc54
Compare
Analysis CompleteAfter thorough investigation, PR #358 has NO merge conflicts: Evidence:
PR Status: The PR is correctly based on the latest master commit with no conflicts. It's not ready to merge because CI hasn't passed and there are no approved reviews, but there are no merge conflicts to resolve. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ensure_full_history()function to.ci/release.shthat detects shallow clones (e.g. CI withfetch-depth: 1) and automatically fetches full history and tagsRELEASE.mdto document what the release script does automaticallyChanges
.ci/release.sh: Addedensure_full_historyfunction that unshallows repos and fetches tags before any git operationsRELEASE.md: Added documentation of script's automatic steps including shallow clone handlingSame fix pattern as applied in forkline/ingress-nginx repo.