Skip to content

fix: clean up nits from PR #175 auth fix#217

Merged
jpoehnelt merged 1 commit intomainfrom
fix/auth-pr175-nits
Mar 5, 2026
Merged

fix: clean up nits from PR #175 auth fix#217
jpoehnelt merged 1 commit intomainfrom
fix/auth-pr175-nits

Conversation

@jpoehnelt
Copy link
Member

Follow-up to #175 — addresses minor nits identified during review.

Changes

  • src/auth.rs: Update stale docstring on resolve_account — still said "fail with upgrade message" but that behavior was removed in Fix auth failures when accounts.json registry is missing #175
  • src/main.rs: Add breadcrumb comment linking string-based error match to its source in auth::load_credentials_inner
  • src/auth_commands.rs: Move identity scope injection (openid/email) before authenticator build for readability (no behavior change — scopes are only used at auth.token() time)

All tests pass (453/453). No behavior changes.

- Update stale docstring on resolve_account to reflect fallthrough behavior
- Add breadcrumb comment on string-based error matching in main.rs
- Move identity scope injection before authenticator build for readability
@googleworkspace-bot googleworkspace-bot added the area: core Core CLI parsing, commands, error handling, utilities label Mar 5, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

🦋 Changeset detected

Latest commit: c2ac2a8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@googleworkspace/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist
Copy link
Contributor

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

@googleworkspace-bot googleworkspace-bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 5, 2026
@jpoehnelt jpoehnelt changed the title Clean up nits from PR #175 auth fix fix: clean up nits from PR #175 auth fix Mar 5, 2026
@jpoehnelt jpoehnelt merged commit 28fa25a into main Mar 5, 2026
29 checks passed
@jpoehnelt jpoehnelt deleted the fix/auth-pr175-nits branch March 5, 2026 22:31
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.56%. Comparing base (a926e3f) to head (c2ac2a8).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
src/auth_commands.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   57.56%   57.56%           
=======================================
  Files          38       38           
  Lines       14176    14176           
=======================================
  Hits         8160     8160           
  Misses       6016     6016           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: auth area: core Core CLI parsing, commands, error handling, utilities cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants