Skip to content

Commit beb2867

Browse files
codysoylandclaude
andauthored
release: fetch full history for goreleaser changelog (#2192)
## Summary - The release workflow's pre-goreleaser checkout was using a shallow clone (default `fetch-depth: 1`), so goreleaser only saw the HEAD commit when generating release notes. - This is why [v1.2.7's release notes](https://github.com/chainguard-dev/apko/releases/tag/v1.2.7) only list #2191 and omit #2190, even though both landed on `main` before the tag was cut. - Goreleaser prints `running against a shallow clone - check your CI documentation at https://goreleaser.com/ci` in the release log, and the [GitHub Actions guide](https://goreleaser.com/ci/actions/) explicitly calls out that `fetch-depth: 0` is required. ## Test plan - [ ] Next release's notes include every commit between the previous tag and the new tag. - [ ] The `running against a shallow clone` warning no longer appears in the release workflow log. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a118c3d commit beb2867

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
if: steps.check.outputs.need_release == 'yes'
100100
with:
101101
ref: ${{ steps.check.outputs.existing_tag || steps.create_tag.outputs.new_tag }}
102+
fetch-depth: 0
102103

103104
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
104105
if: steps.check.outputs.need_release == 'yes'

0 commit comments

Comments
 (0)