Skip to content

fix(ci): fetch full git history in Promote workflow#12535

Merged
dlabaj merged 1 commit into
mainfrom
fix/promote-fetch-depth
Jul 1, 2026
Merged

fix(ci): fetch full git history in Promote workflow#12535
dlabaj merged 1 commit into
mainfrom
fix/promote-fetch-depth

Conversation

@dlabaj

@dlabaj dlabaj commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds fetch-depth: 0 to the Promote workflow checkout step so Lerna can access git tags during --conventional-graduate publish
  • Matches the existing Release workflow configuration, which already fetches full history for the same reason

Context

The Promote workflow failed with fatal: bad revision 'undefined' because the default shallow checkout does not include git tags. Lerna needs those tags to determine which packages changed since their last release when graduating prerelease versions to stable.

Test plan

  • Merge this PR
  • Re-run the Promote workflow on main
  • Confirm the deploy step completes without the Lerna git revision error

Made with Cursor

Summary by CodeRabbit

  • Chores
    • Updated the release workflow to ensure it has access to complete project history during release preparation.

Lerna publish needs git tags to graduate prerelease packages; the shallow
default checkout caused `bad revision 'undefined'` during promote.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6a4dd0bf-b428-4372-9435-941c9e805653

📥 Commits

Reviewing files that changed from the base of the PR and between 8cabb14 and 38d4917.

📒 Files selected for processing (1)
  • .github/workflows/promote.yml

Walkthrough

The promote.yml GitHub Actions workflow's checkout step is updated to add fetch-depth: 0, configuring the checkout to fetch full git history instead of the default shallow clone, along with an explanatory comment.

Changes

CI Workflow Checkout Update

Layer / File(s) Summary
Full history checkout
.github/workflows/promote.yml
The checkout step now sets fetch-depth: 0 to retrieve full git history, with a comment noting this is required for the release script.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the workflow change to fetch full git history in Promote.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/promote-fetch-depth

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dlabaj dlabaj merged commit 65bc8c1 into main Jul 1, 2026
9 of 10 checks passed
@patternfly-build

patternfly-build commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

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.

2 participants