Skip to content

Conversation

@egilmorez
Copy link
Contributor

Updated secrets property comments in multiple files and Expression class comment in src/params/types.ts to be JSDoc comments (/**). This ensures they are included in the generated API reference documentation.

Files modified:

  • src/v2/options.ts
  • src/v2/providers/alerts/alerts.ts
  • src/v2/providers/https.ts
  • src/v2/providers/eventarc.ts
  • src/v2/providers/database.ts
  • src/v2/providers/pubsub.ts
  • src/v2/providers/storage.ts
  • src/v2/providers/tasks.ts
  • src/v2/providers/identity.ts
  • src/v1/function-configuration.ts
  • src/params/types.ts

PR created automatically by Jules for task 808976492170626211 started by @egilmorez

Changed comments for `secrets` property in various files from `/*` to `/**` to ensure they are picked up by documentation generators.
Also updated `Expression` class comment in `src/params/types.ts` to be a JSDoc comment.

Co-authored-by: egilmorez <5544707+egilmorez@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @egilmorez, 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 focuses on improving the generated API reference documentation by converting specific code comments from standard block comments to JSDoc format. The primary goal is to ensure that important details about the secrets property and the Expression class are correctly extracted and presented in the official API documentation, making it easier for users to understand and utilize these features.

Highlights

  • Documentation Improvement: Converted existing block comments for the secrets property across numerous provider and option files to JSDoc format (/**).
  • API Reference Generation: Updated the comment for the Expression class in src/params/types.ts to use JSDoc syntax, ensuring its inclusion in generated API reference documentation.
  • Enhanced Discoverability: The changes ensure that these critical comments are now properly parsed and included in the generated API reference documentation, improving clarity and discoverability for developers.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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
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 converts block comments to JSDoc comments across multiple files to improve API documentation generation. The changes are consistent and achieve the stated goal. I've added a few suggestions to further enhance the JSDoc comments for the secrets property by making them more descriptive and linking to relevant types. This will provide more context for developers using the generated documentation.

Comment on lines +235 to 237
/**
* Secrets to bind to a function instance.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

While converting this to a JSDoc comment is a good step, the comment itself could be more descriptive to improve the generated documentation. Consider expanding it to explain what types of values are supported for secrets and linking to the SupportedSecretParam type for more details.

  /**
   * Specifies secrets to be made available to the function instance.
   *
   * Values can be strings representing the secret name, or `SecretParam`
   * or `JsonSecretParam` objects for more advanced configuration.
   * See {@link SupportedSecretParam}.
   */

Comment on lines +210 to 212
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve the generated API documentation, consider making this comment more descriptive. You could explain the supported types for secrets and link to SupportedSecretParam for further details.

  /**
   * Specifies secrets to be made available to the function.
   *
   * Values can be strings representing the secret name, or `SecretParam`
   * or `JsonSecretParam` objects for more advanced configuration.
   * See {@link SupportedSecretParam}.
   */

Comment on lines +180 to 182
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This comment could be enhanced for better documentation. Providing more details on the supported secret types and a link to SupportedSecretParam would be beneficial for users.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Comment on lines +192 to 194
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For clearer API documentation, it would be helpful to expand this comment. You could detail the supported formats for secrets and include a JSDoc link to the SupportedSecretParam type.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Comment on lines +156 to 158
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To make the documentation more helpful, consider expanding this comment to describe the valid types for secrets and add a link to SupportedSecretParam.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Comment on lines +165 to 167
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This comment can be improved for better clarity in the generated documentation. I suggest adding details about the supported secret formats and linking to the SupportedSecretParam type.

  /**
   * Secrets to bind to a function.
   *
   * Values can be strings representing the secret name, or `SecretParam`
   * or `JsonSecretParam` objects for more advanced configuration.
   * See {@link SupportedSecretParam}.
   */

Comment on lines +163 to 165
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For more comprehensive API documentation, you could enhance this comment by explaining the different ways secrets can be specified and including a link to SupportedSecretParam.

  /**
   * Secrets to bind to a function.
   *
   * Values can be strings representing the secret name, or `SecretParam`
   * or `JsonSecretParam` objects for more advanced configuration.
   * See {@link SupportedSecretParam}.
   */

Comment on lines +281 to 283
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve documentation, this comment could be more descriptive. It would be useful to mention the supported types for secrets and link to SupportedSecretParam.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Comment on lines +297 to 299
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This comment could be expanded to provide more value in the API documentation. Consider adding information about the supported secret types and a link to SupportedSecretParam.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Comment on lines +154 to 156
/**
* Secrets to bind to a function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better documentation, you could make this comment more descriptive by explaining the supported secret formats and linking to the SupportedSecretParam type.

Suggested change
/**
* Secrets to bind to a function.
*/
/**
* Secrets to bind to a function.
*
* Values can be strings representing the secret name, or `SecretParam`
* or `JsonSecretParam` objects for more advanced configuration.
* See {@link SupportedSecretParam}.
*/

Updated `secrets` property comments in various files from `/*` to `/**` to ensure they are picked up by documentation generators.
Added JSDoc comments to `MemoryOption`, `VpcEgressSetting`, and `IngressSetting` union members in `src/v2/options.ts`.
Added JSDoc for `onCallGenkit` and clarified `CallableOptions.cors` behavior in `src/v2/providers/https.ts`.
Updated `Expression` class comment in `src/params/types.ts` to be a JSDoc comment.
Updated `FailurePolicy` documentation in `src/v1/function-configuration.ts`.

Co-authored-by: egilmorez <5544707+egilmorez@users.noreply.github.com>
@egilmorez egilmorez closed this Jan 30, 2026
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