Skip to content

Fail the Ruby version bump when its branch has no open PR - #218

Merged
russellporter merged 1 commit into
masterfrom
t3/ruby-bump-leftover-branch
Dec 1, 2026
Merged

russellporter merged 1 commit into
masterfrom
t3/ruby-bump-leftover-branch

Conversation

@russellporter

Copy link
Copy Markdown
Member

If the workflow's branch for a new Ruby release already exists, it skips that release and still succeeds, even if the branch's PR was closed. That hid the 3.3.14 security update after #208 was closed.

Now it fails with an error unless the branch has an open PR.

Testing

I ran the step with stand-ins for git, gh and sed: it fails with a leftover branch, skips when there's an open PR, and opens a PR when there's no branch.

A branch left over from a closed PR made the workflow skip that release
and still succeed. This hid the 3.3.14 security update.
@russellporter
russellporter merged commit 838139a into master Dec 1, 2026
8 checks passed
@russellporter
russellporter deleted the t3/ruby-bump-leftover-branch branch December 1, 2026 07:23
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