Skip to content

Add --release mode for CLI-only authentication#3

Merged
atani merged 1 commit intomainfrom
feature/cli-auth-upload
Jan 28, 2026
Merged

Add --release mode for CLI-only authentication#3
atani merged 1 commit intomainfrom
feature/cli-auth-upload

Conversation

@atani
Copy link
Copy Markdown
Owner

@atani atani commented Jan 28, 2026

Summary

  • Add --release flag to upload images via GitHub Releases API
  • No browser or playwright-cli needed in release mode
  • Useful for GHE with SAML/SSO where browser login is required each time

New Options

  • --release: Use GitHub Releases for upload (no browser needed)
  • --release-tag <tag>: Customize release tag name (default: gh-attach-assets)

Usage

# Release mode (CLI auth only, no browser)
gh-attach --issue 123 --image ./screenshot.png --release

# With custom release tag
gh-attach --issue 123 --image ./screenshot.png --release --release-tag my-assets

How it works

  1. Creates a release tag (gh-attach-assets by default) if it doesn't exist
  2. Uploads images to the release as assets
  3. Uses the release download URL in comments

Test plan

  • Test --release mode on github.com
  • Test --release mode on GHE with SAML/SSO
  • Verify backward compatibility (browser mode still works)

- Add --release flag to upload images via GitHub Releases API
- No browser or playwright-cli needed in release mode
- Useful for GHE with SAML/SSO where browser login is required
- Add --release-tag option to customize release tag name
- Default release tag: gh-attach-assets
@atani atani merged commit 1e18756 into main Jan 28, 2026
1 check passed
@atani atani deleted the feature/cli-auth-upload branch January 28, 2026 03:21
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