Skip to content

release set-commits: the local fallback ignores the previous release's commit #2472

Done

Description

@JPeer264

Without --auto, when no repository integration matches, set-commits reads the last --initial-depth (20) commits from HEAD (set-commits.ts, git.ts). It does not stop at the last commit of the previous release, so consecutive releases share commits.

@sentry/cli v2 read the previous release's last commit from previous-with-commits and only walked back to it. It used --initial-depth only without a previous release, or with --ignore-missing when the commit was not in the local history (set_commits.rs).

The default mode already fetches that commit for the integration (releases.ts). Could the local fallback use it as from, and fall back to --initial-depth when the commit is not in the local history (for example in shallow clones)?

The Sentry bundler plugins use this mode for their default setCommits since getsentry/sentry-javascript#26760 (see this review comment).

Activity

  1. linear-code commented on Nov 23, 2026

    @linear-code
  2. added a commit that references this issue on Nov 27, 2026
    25acf0a
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions