-
Notifications
You must be signed in to change notification settings - Fork 5
build: catalog, checks, and global clasp #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying apps-script with
|
| Latest commit: |
2def81a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0058379d.apps-script.pages.dev |
| Branch Preview URL: | https://build-clasp.apps-script.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @jpoehnelt, 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!
Summary of Changes
This pull request focuses on improving the build process and linting configurations. It skips pnpm files during the prettier formatting step, installs clasp as a workspace dependency, and adds a flag to the biome check command to ignore errors on unmatched files. The changes aim to streamline the development workflow and ensure consistent code formatting and linting.
Highlights
- Linting: The pull request updates the linting configuration to skip pnpm files during prettier formatting and adds the
--no-errors-on-unmatchedflag to the biome check command. - Dependencies: The pull request installs
@google/claspas a workspace dependency and adds a corresponding script to thepackage.jsonfile. - Formatting: The pull request modifies the
.prettierignorefile to exclude pnpm-related files from prettier formatting.
Changelog
- .lintstagedrc.commit.js
- Added the
--no-errors-on-unmatchedflag to the biome check command to prevent errors when files don't match the specified patterns (lines 3-4).
- Added the
- .prettierignore
- Added
**/pnpm-*to the ignore list to prevent prettier from formatting pnpm-related files (line 5).
- Added
- package.json
- Added
@google/claspas a dev dependency (line 24). - Added a
claspscript that executes the@google/claspcommand (line 19).
- Added
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| 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 issue 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 is currently in preview and 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 to provide feedback.
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.
Trivia time!
What does the acronym 'CLI' stand for in the context of software development tools like clasp?
Click here for the answer
'CLI' stands for Command Line Interface.
Footnotes
-
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. ↩
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request updates configuration files and package settings. The Changes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request introduces changes to improve the development workflow by skipping pnpm files with prettier and installing clasp at the workspace. The changes are well-structured and address the intended goals.
Summary of Findings
- Biome check flag: The addition of
--no-errors-on-unmatchedto the biome check command is a good practice to avoid errors when files don't match the specified patterns. - Prettier ignore: Adding
**/pnpm-*to the.prettierignorefile prevents formatting of pnpm specific files, which is a good practice. - Clasp installation: Installing clasp as a dev dependency and adding it as a script in
package.jsonallows for easy execution of clasp commands.
Merge Readiness
The pull request is ready to be merged. The changes are well-structured and address the intended goals. I am unable to directly approve the pull request, and recommend that others review and approve this code before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (3)
.lintstagedrc.commit.js(1 hunks).prettierignore(1 hunks)package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Cloudflare Pages
🔇 Additional comments (3)
.prettierignore (1)
5-5: LGTM! Appropriate exclusion for pnpm files.This addition correctly implements the PR objective to skip pnpm-related files from Prettier formatting. These files are generated by pnpm and don't need formatting, so excluding them is a good practice.
package.json (1)
18-19: LGTM! Script for clasp access.Adding this script entry allows running
pnpm claspto directly access the clasp CLI tool, which aligns with the PR objective to install clasp in the workspace..lintstagedrc.commit.js (1)
3-5: LGTM! Improved error handling for biome.Adding the
--no-errors-on-unmatchedflag prevents Biome from raising errors when patterns don't match any files, which enhances the developer experience during commits by avoiding false positives.
Summary by CodeRabbit
New Features
Chores