Skip to content

Update gh auth login command to use --web flag for browser-based auth#7

Merged
konard merged 3 commits intomainfrom
issue-6-dda093eb2e77
Dec 25, 2025
Merged

Update gh auth login command to use --web flag for browser-based auth#7
konard merged 3 commits intomainfrom
issue-6-dda093eb2e77

Conversation

@konard
Copy link
Member

@konard konard commented Dec 25, 2025

Summary

Updates the gh auth login command in documentation and CLI to use the recommended format with --git-protocol https --web flags for better browser-based authentication experience.

Changes

  • README.md: Updated example command in "Overview" section and "First Run" section
  • src/cli.js: Updated the authentication prompt message shown when user is not logged in
  • Changeset: Added patch version bump changeset

Before

gh auth login -h github.com -s repo,workflow,user,read:org,gist

After

printf "\n" | gh auth login -s repo,workflow,user,read:org,gist --git-protocol https --web

Benefits

  1. --web flag provides a better UX by using browser-based authentication
  2. --git-protocol https explicitly sets the protocol for git operations
  3. printf "\n" handles the interactive prompt automatically

Fixes #6

Test plan

  • Lint checks pass (npm run lint)
  • All tests pass (npm test)
  • Changeset validation passes (node scripts/validate-changeset.mjs)

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #6
@konard konard self-assigned this Dec 25, 2025
- Update README.md example with `printf "\n" | gh auth login -s repo,workflow,user,read:org,gist --git-protocol https --web`
- Update CLI prompt message with the same command format
- Add changeset for patch version bump

The --web flag provides a better UX by using browser-based authentication,
and --git-protocol https explicitly sets the protocol for git operations.

Fixes #6

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Make sure we use example in docs and logic that is by default equivalent to that one Update gh auth login command to use --web flag for browser-based auth Dec 25, 2025
@konard konard marked this pull request as ready for review December 25, 2025 14:54
@konard
Copy link
Member Author

konard commented Dec 25, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $1.933862 USD
  • Calculated by Anthropic: $1.156009 USD
  • Difference: $-0.777853 (-40.22%)
    📎 Log file uploaded as GitHub Gist (306KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit fe9c23e into main Dec 25, 2025
13 checks passed
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.

Make sure we use example in docs and logic that is by default equivalent to that one

1 participant