Skip to content

release.sh: check gh auth status up front - #30

Merged
epeicher merged 1 commit into
trunkfrom
fix/release-script-gh-auth-check
Apr 27, 2026
Merged

release.sh: check gh auth status up front#30
epeicher merged 1 commit into
trunkfrom
fix/release-script-gh-auth-check

Conversation

@epeicher

@epeicher epeicher commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

bin/release.sh already verified gh was installed but did not check whether the user was authenticated. An unauthenticated gh only surfaces deep into the script (CI-run polling silently returns nothing → "no CI run found"), which is misleading — the run probably exists, the CLI just can't see it.

Adding a gh auth status probe right after the install check, with a clear next-step:

error: gh CLI is not authenticated. Run:  gh auth login

Test plan

  • gh auth logout then run ./bin/release.sh X.Y.Z — should fail immediately with the auth error before touching the working tree.
  • With gh authenticated, the script proceeds past the check as before.
Open WordPress Playground Preview

@epeicher
epeicher enabled auto-merge (squash) April 27, 2026 15:51
@epeicher
epeicher merged commit 1def8b0 into trunk Apr 27, 2026
7 checks passed
@epeicher
epeicher deleted the fix/release-script-gh-auth-check branch April 27, 2026 15: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