Skip to content

ci: fetch full history so goreleaser builds a complete changelog #2142

Closed

Description

@TerryHowe

Problem

release-github.yml checks out with the default actions/checkout depth of 1, so the runner only has the tagged commit. GoReleaser derives the release changelog from the commit history, so the generated notes contain a single entry — the version bump commit — instead of everything since the previous tag.

This was visible on the v1.3.4 draft release, whose entire changelog was:

## Changelog
* db9e29505c3059f2b8fde34ae8cae266c5c765e9 bump: tag and release ORAS CLI v1.3.4 (#2136)

There are 29 commits in v1.3.3..v1.3.4.

Proposed Fix

Set fetch-depth: 0 in the actions/checkout step of release-github.yml to give GoReleaser the full history it needs.

The other release workflows (release-ghcr.yml, release-snap.yml) do not read git history, so they can be left unchanged.

Reference

PR #2141 had a working fix for v1.x.

Activity

  1. added
    help wanted
    good first issue
    v3
    on Aug 28, 2026
  2. nightcityblade commented on Aug 28, 2026

    @nightcityblade
    Contributor

    Hi, I'd like to work on this. I'll submit a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wantedv3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions