Skip to content

fix(ci): Handle shallow clones in release script#358

Merged
pando85 merged 1 commit into
masterfrom
fix/ci-shallow-clone-handling
May 18, 2026
Merged

fix(ci): Handle shallow clones in release script#358
pando85 merged 1 commit into
masterfrom
fix/ci-shallow-clone-handling

Conversation

@pando85
Copy link
Copy Markdown
Owner

@pando85 pando85 commented May 18, 2026

Summary

  • Add ensure_full_history() function to .ci/release.sh that detects shallow clones (e.g. CI with fetch-depth: 1) and automatically fetches full history and tags
  • This prevents CHANGELOG generation failures when git-cliff or other tools need full commit history
  • Update RELEASE.md to document what the release script does automatically

Changes

  • .ci/release.sh: Added ensure_full_history function that unshallows repos and fetches tags before any git operations
  • RELEASE.md: Added documentation of script's automatic steps including shallow clone handling

Same fix pattern as applied in forkline/ingress-nginx repo.

Detects shallow clones and fetches full history + tags automatically.
Prevents CHANGELOG generation failures in CI environments with
fetch-depth: 1.
@pando85 pando85 force-pushed the fix/ci-shallow-clone-handling branch from 3947bd0 to e07fc54 Compare May 18, 2026 12:57
@forkline-bot
Copy link
Copy Markdown

forkline-bot Bot commented May 18, 2026

Analysis Complete

After thorough investigation, PR #358 has NO merge conflicts:

Evidence:

  • GitHub API reports: "mergeable": true, "conflicts": false
  • Local merge test: Already up to date
  • Master has no new commits (both branches share commit 696aeab)
  • PR branch is one commit ahead of master (e07fc54)
  • Branch sync: Everything up-to-date

PR Status:

mergeable: true
conflicts: false
ci_passed: false
reviews_approved: false

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.

@pando85 pando85 merged commit 4488932 into master May 18, 2026
5 checks passed
@pando85 pando85 deleted the fix/ci-shallow-clone-handling branch May 18, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant