Skip to content

Conversation

@noahpodgurski
Copy link
Contributor

No description provided.

@noahpodgurski noahpodgurski requested a review from tavdog as a code owner November 7, 2025 04:36
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @noahpodgurski, 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 refactors the "Public Api" applet to change its underlying data source and random selection mechanism. Previously, it relied on a dynamic endpoint for random APIs. Now, it fetches a comprehensive list of public APIs from a GitHub repository and performs local random selection, improving control over the data source and reducing the frequency of external API calls by increasing the refresh time.

Highlights

  • API Data Source Change: The applet now fetches its list of public APIs from a static JSON file hosted on GitHub (marcelscruz/public-apis) instead of using the dynamic api.publicapis.org/random endpoint.
  • Local Random Selection: Instead of relying on the external API to provide a random entry, the applet now fetches all available APIs and selects one randomly using random.seed and random.number.
  • Increased Refresh Time: The data refresh interval has been significantly extended from 60 seconds to one week (86400*7 seconds), reducing the frequency of external requests for the API list.
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 refactors the publicapi applet to fetch a list of APIs from a JSON file hosted on GitHub, rather than using the /random endpoint from api.publicapis.org. This is a good change that likely improves reliability. The applet now performs the random selection locally and caches the full list for one week, which is efficient. I've added one comment regarding error handling to make the applet more robust against potential changes in the API response format. Additionally, please note that apps/publicapi/manifest.yaml still contains the old API description in its desc field. It would be good to update it in this PR to maintain consistency.

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