Conversation
…st git fetch error Agent-Logs-Url: https://github.com/layer5io/sistent/sessions/4d091639-128b-4610-9983-d9d543060cf7 Co-authored-by: ritzorama <182301570+ritzorama@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ritzorama
May 6, 2026 18:02
View session
ritzorama
approved these changes
May 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the release publishing workflow to ensure peter-evans/create-pull-request@v8 can open the post-publish “version bump-back” PR reliably by preventing the internal shallow git fetch that fails when the base branch is checked out.
Changes:
- Configure
actions/checkoutwithfetch-depth: 0to provide a full clone for the workflow. - Add inline documentation explaining why the full clone prevents the
create-pull-requestfetch error.
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
Fixes the
##[error]annotation seen at step 7 line 86 of https://github.com/layer5io/sistent/actions/runs/25452067298/job/74671621380.Root cause
peter-evans/create-pull-request@v8internally runs:to rebase the new branch on top of the latest base. Because the preceding
actions/checkoutstep checked outmasteras the working branch, git refuses the fetch with:Fix
Add
fetch-depth: 0to theactions/checkoutstep. With a full (non-shallow) clone already present,create-pull-requestdetects that it already has all commits and skips its shallow-fetch of the base branch entirely, avoiding the conflict.The
continue-on-error: trueguard on the PR step meant the publish workflow still reported success, but the version-bump PR may not have been reliably opened on every run.Changes
.github/workflows/release.yml: addfetch-depth: 0to the Checkout code step with an explanatory comment