fix(release): improve previous tag detection and use stable goreleaser image - #3070
fix(release): improve previous tag detection and use stable goreleaser image#3070pratap0007 wants to merge 1 commit into
Conversation
…r image Restructure release.sh to detect patch vs minor release before resolving the previous tag, so patch releases correctly scope tag lookup to the same minor version. Simplify changelog commit range to use git rev range (prev_tag..HEAD) instead of date-based --since filtering. Pin goreleaser to stable v2.17.1, replacing the nightly build. Signed-off-by: Shiv Verma <shverma@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
Updates the Tekton CLI release automation to more reliably determine the correct “previous tag” for changelog generation (especially for patch releases) and to use a pinned, stable GoReleaser image in the Tekton release pipeline.
Changes:
- Detect patch vs. minor release earlier, and scope patch-release previous-tag lookup to the same
vX.Y.*series. - Simplify changelog commit selection to a straightforward Git revision range (
${prev_tag}..HEAD) instead of date-based filtering. - Pin the release pipeline’s GoReleaser image to
goreleaser/goreleaser:v2.17.1(stable), replacing the nightly image.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tekton/release.sh | Reworks previous-tag detection and switches changelog commit selection to ${prev_tag}..HEAD. |
| tekton/release-pipeline.yml | Pins the GoReleaser task image to the stable v2.17.1 container. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fix(release): improve previous tag detection and use stable goreleaser image
Restructure release.sh to detect patch vs minor release before resolving
the previous tag, so patch releases correctly scope tag lookup to the
same minor version. Simplify changelog commit range to use git rev range
(prev_tag..HEAD) instead of date-based --since filtering.
Pin goreleaser to stable v2.17.1, replacing the nightly build.
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make checkmake generatedSee the contribution guide
for more details.
Release Notes