Skip to content

ci: integrate prettier check in github workflow#185

Merged
guglielmo-san merged 32 commits into
a2aproject:mainfrom
guglielmo-san:main
Nov 18, 2025
Merged

ci: integrate prettier check in github workflow#185
guglielmo-san merged 32 commits into
a2aproject:mainfrom
guglielmo-san:main

Conversation

@guglielmo-san

Copy link
Copy Markdown
Member

Description

This PR integrates the prettier check in the github workflow to ensure the code respects the correct formatting standards

Fixes #177 🦕

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @guglielmo-san, 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 enhancing code quality and consistency by integrating Prettier for automated code formatting. It also updates the ESLint configuration to work seamlessly with Prettier, ensuring a standardized and maintainable codebase. The changes aim to automate code formatting, reduce manual formatting efforts, and improve overall code aesthetics.

Highlights

  • Prettier Integration: This PR introduces Prettier to the project's workflow, ensuring consistent code formatting across the codebase.
  • ESLint Configuration Update: The ESLint configuration has been modified to integrate with Prettier, disabling conflicting ESLint rules and enabling Prettier's formatting rules.
  • Dependency Updates: New dependencies such as eslint-plugin-prettier and prettier have been added, and eslint-plugin-unused-imports has been removed to streamline the linting and formatting process.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/eslint.yml
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.

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

Copy link
Copy Markdown
Contributor

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 sets up Prettier for code formatting and applies it across the codebase, which is a great step for consistency. The configuration and formatting changes look good.

However, the primary goal of this PR, as stated in the title and description, is to 'integrate prettier check in github workflow'. This change appears to be missing, as no GitHub workflow files have been added or modified. Without this, the Prettier check will not run as part of your CI pipeline. This is a critical omission.

I recommend adding a new workflow file, for example .github/workflows/lint.yml, with a job to run the formatter check.

Additionally, to make it easier for developers to use Prettier locally, I suggest adding dedicated scripts to your package.json for checking and applying formatting. For example:

"scripts": {
  ...
  "format": "prettier --write .",
  "format:check": "prettier --check ."
}

Please add the GitHub workflow file to complete this PR's stated goal.

Comment thread src/types.ts
Comment thread .github/workflows/eslint.yml
Comment thread package.json Outdated
Co-authored-by: Ivan Shymko <vana.shimko@gmail.com>
@guglielmo-san guglielmo-san merged commit 542c5fb into a2aproject:main Nov 18, 2025
5 checks passed
@ishymko ishymko mentioned this pull request Nov 19, 2025
4 tasks
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.

[Feat]: Lint code on PRs

2 participants