Skip to content

Check for main in release.sh - #11

Merged
j0sh merged 1 commit into
mainfrom
ja/release-main
Oct 23, 2026
Merged

j0sh merged 1 commit into
mainfrom
ja/release-main

Conversation

@j0sh

@j0sh j0sh commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused guard and argument validation preserve the existing release flow, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Adds a branch safety check to the release script to prevent accidental releases outside main.

Changes:

  • Refuses releases from non-main branches or detached HEAD by default.
  • Allows an explicit --allow-non-main override.
  • Validates optional arguments and updates usage guidance.
File Description
release.sh Adds branch validation, an explicit override, and updated usage messages.

Review effort: Balanced

@j0sh
j0sh merged commit 9e00040 into main Oct 23, 2026
7 checks passed
@j0sh
j0sh deleted the ja/release-main branch October 23, 2026 21:47
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.

2 participants