Skip to content

fix: use gl-rust/ prefix in x-goog-api-client header#59

Merged
jpoehnelt merged 1 commit intomainfrom
fix/x-google-api-client
Mar 4, 2026
Merged

fix: use gl-rust/ prefix in x-goog-api-client header#59
jpoehnelt merged 1 commit intomainfrom
fix/x-google-api-client

Conversation

@jpoehnelt
Copy link
Copy Markdown
Member

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 4, 2026

🦋 Changeset detected

Latest commit: e6daf09

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
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an issue with the x-goog-api-client header format, ensuring it now correctly includes the gl-rust/ prefix and uses a hyphen to separate the package name and version. This change aligns the client header with the expected format, improving compatibility and identification for Google APIs.

Highlights

  • x-goog-api-client Header Format: The format of the x-goog-api-client header has been corrected to adhere to the gl-rust/name-version standard, specifically by adding the gl-rust/ prefix and changing the separator between the package name and version from a slash to a hyphen.
  • Changelog Entry: A new changeset file (.changeset/fix-api-client-header.md) was added to document this fix, ensuring proper release notes generation.
Changelog
  • .changeset/fix-api-client-header.md
    • Added a new changeset entry to document the fix for the x-goog-api-client header format.
  • src/client.rs
    • Modified the x-goog-api-client header construction to use the gl-rust/name-version format.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly updates the format of the x-goog-api-client header in src/client.rs to use the gl-rust/ prefix and a hyphen separator. The change is straightforward and aligns with the PR's goal. I have one suggestion for the new changeset file to improve the description's maintainability by making it more generic.

@jpoehnelt jpoehnelt merged commit 8c1042a into main Mar 4, 2026
21 checks passed
@jpoehnelt jpoehnelt deleted the fix/x-google-api-client branch March 4, 2026 18:57
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@e71ce29). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage        ?   54.09%           
=======================================
  Files           ?       35           
  Lines           ?    11320           
  Branches        ?        0           
=======================================
  Hits            ?     6123           
  Misses          ?     5197           
  Partials        ?        0           

☔ 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.

shigechika pushed a commit to shigechika/gws-cli that referenced this pull request Mar 20, 2026
)

Co-authored-by: jpoehnelt-bot <jpoehnelt-bot@users.noreply.github.com>
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