Skip to content

fix(release): one GitHub release step, not two - #46

Merged
gierschv merged 1 commit into
masterfrom
fix/duplicate-release-step
Sep 11, 2026
Merged

fix(release): one GitHub release step, not two#46
gierschv merged 1 commit into
masterfrom
fix/duplicate-release-step

Conversation

@gierschv

Copy link
Copy Markdown
Member

The v2.0.1 release failed:

HTTP 422: Validation Failed (https://api.github.com/repos/FlatIO/api-client-python/releases)
Release.tag_name already exists

release.yml carried the step twice. The first named the release for the version with the v stripped — which is how the 2.0.0 and 2.0.1 releases already on this repository were created — so creating 2.0.1 a second time was refused. The duplicate arrived when #45 applied the v-prefix change on top of a file that already had the step.

Nothing was damaged: flat-api 2.0.1 on PyPI is untouched, and the publish step was correctly skipped by the new guard (it saw the version already on PyPI). Only the release step failed.

The two are merged into one, keeping the better half of each:

  • the changelog lookup and the pip install line from the first
  • the existence guard from the second
  • the release named for the tag, so a vX.Y.Z tag produces a vX.Y.Z release

The bare 2.0.0 and 2.0.1 releases are left alone: they point at the tags actually published, and renaming them would break any link anyone holds.

The v2.0.1 release failed:

  HTTP 422: Validation Failed
  Release.tag_name already exists

release.yml carried the step twice. The first named the release for the version
with the v stripped, which is how the 2.0.0 and 2.0.1 releases already on this
repository were created, so creating 2.0.1 a second time was refused. The
duplicate arrived when the v-prefix change was applied on top of a file that
already had the step.

The two are merged into one: the changelog lookup and the install line from the
first, the existence guard from the second, and the release named for the tag
rather than the stripped version, so a vX.Y.Z tag produces a vX.Y.Z release.

The bare 2.0.0 and 2.0.1 releases are left alone. They point at the tags that
were actually published, and renaming them would break any link anyone holds.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T12:49:57.061615Z f348491 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gierschv
gierschv merged commit e5cccc1 into master Sep 11, 2026
5 checks passed
@gierschv
gierschv deleted the fix/duplicate-release-step branch September 11, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant