Skip to content

Conversation

JounQin
Copy link
Member

@JounQin JounQin commented Jun 7, 2025

Important

Added format options documentation and updated workflow conditions and size limits.

  • Documentation:
    • Added "Format Options" section in README.md for package formatting configuration.
  • Configuration:
    • Updated .size-limit.json to adjust size limits for autocorrect, pkg, and sh packages.
    • Added condition in size-limit.yml and vercel.yml workflows to run jobs only if repository owner is un-ts.

This description was created by Ellipsis for 2971f6e. You can customize this summary. It will automatically update as commits are pushed.


Summary by CodeRabbit

  • Documentation

    • Added a new "Format Options" section to the documentation, describing available configuration options for package formatting.
  • Chores

    • Adjusted size limits for specific package files to reflect new thresholds.
    • Updated workflow configurations to restrict certain jobs to run only for the repository owner "un-ts".

@JounQin JounQin requested a review from Copilot June 7, 2025 14:33
@JounQin JounQin self-assigned this Jun 7, 2025
@JounQin JounQin added the documentation Improvements or additions to documentation label Jun 7, 2025
Copy link

changeset-bot bot commented Jun 7, 2025

⚠️ No Changeset found

Latest commit: 2971f6e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

coderabbitai bot commented Jun 7, 2025

"""

Walkthrough

Conditional execution was added to the size-limit and vercel GitHub Actions workflows, restricting their jobs to run only for the un-ts repository owner. Size limits were updated for specific JavaScript package files. The packages/pkg/README.md was expanded with documentation for a FormatOptions interface describing formatting options.

Changes

File(s) Change Summary
.github/workflows/size-limit.yml, .github/workflows/vercel.yml Added a condition so jobs only run if the repository owner is un-ts.
.size-limit.json Adjusted size limits for autocorrect, pkg, and sh package entry files.
packages/pkg/README.md Added documentation for FormatOptions interface with packageSortOrder and packageIgnoreSort.

Possibly related PRs

Poem

🐇
In the warren, limits shift and flow,
Only for "un-ts" do our actions go.
Docs now explain how to format with flair,
And size checks ensure we code with care.
With each new tweak, our garden grows—
Let’s hop ahead, where progress shows!

"""


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codesandbox-ci bot commented Jun 7, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Jun 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.78%. Comparing base (d5442c8) to head (2971f6e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   85.78%   85.78%           
=======================================
  Files          10       10           
  Lines         197      197           
  Branches       55       55           
=======================================
  Hits          169      169           
  Misses         27       27           
  Partials        1        1           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A documentation PR that adds a new section about Format Options while also adjusting size limits and adding owner-based conditions to workflow files.

  • Added a new "Format Options" section in README with an example TypeScript interface.
  • Modified size limit values in .size-limit.json for multiple packages.
  • Added conditional deployment steps in Vercel and size-limit GitHub workflows.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/pkg/README.md Added documentation with a code snippet for FormatOptions.
.size-limit.json Updated bundle size limits for several packages.
.github/workflows/vercel.yml Added condition to run deployment only when the repository owner is 'un-ts'.
.github/workflows/size-limit.yml Added condition to run the size-limit job only for the 'un-ts' owner.
Comments suppressed due to low confidence (4)

packages/pkg/README.md:171

  • [nitpick] Consider adding additional usage examples or explanatory text to clarify how the FormatOptions interface affects package configuration.
## Format Options

.size-limit.json:4

  • Verify that the updated size limit for packages/autocorrect is aligned with current bundle outputs and performance targets.
    "limit": "500B"

.size-limit.json:8

  • Ensure the increased limit for packages/pkg is intentional and reflects updated benchmarks or requirements.
    "limit": "600B"

.size-limit.json:12

  • Confirm that the decreased limit for packages/sh is appropriate based on current bundle sizes and performance expectations.
    "limit": "3kB"

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 41747eb in 36 seconds. Click for details.
  • Reviewed 69 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/size-limit.yml:14
  • Draft comment:
    Using a strict equality check to restrict the job to owner 'un-ts'. Confirm that triple equals (===) is desired and works as expected in GitHub Actions.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
2. .github/workflows/vercel.yml:15
  • Draft comment:
    Ensure the owner check (if: ${{ github.repository_owner === 'un-ts' }}) is intentional and consistent with your workflows.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
3. .size-limit.json:3
  • Draft comment:
    The size limits have been adjusted (e.g. 540B -> 500B, 500B -> 600B, 3.4kB -> 3kB). Verify that these new thresholds accurately reflect desired bundle sizes and unit consistency.
  • Reason this comment was not posted:
    Confidence changes required: 30% <= threshold 50% None
4. packages/pkg/README.md:171
  • Draft comment:
    The new 'Format Options' section is clear. Consider adding a brief example or use-case on how to configure these options (e.g., in a .prettierrc or package.json) for better usability.
  • Reason this comment was not posted:
    Confidence changes required: 30% <= threshold 50% None

Workflow ID: wflow_Jm2wMitBo51ZXEaO

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

pkg-pr-new bot commented Jun 7, 2025

Open in StackBlitz

prettier-plugin-autocorrect

npm i https://pkg.pr.new/prettier-plugin-autocorrect@474

prettier-plugin-pkg

npm i https://pkg.pr.new/prettier-plugin-pkg@474

prettier-plugin-sh

npm i https://pkg.pr.new/prettier-plugin-sh@474

prettier-plugin-sql

npm i https://pkg.pr.new/prettier-plugin-sql@474

prettier-plugin-toml

npm i https://pkg.pr.new/prettier-plugin-toml@474

commit: 2971f6e

Copy link
Contributor

github-actions bot commented Jun 7, 2025

📊 Package size report   0.01%↑

File Before After
.github/workflows/size-limit.yml 802 B 6%↑852 B
.github/workflows/vercel.yml 1.0 kB 5%↑1.1 kB
.size-limit.json 292 B -0.68%↓290 B
packages/pkg/README.md 6.3 kB 4%↑6.5 kB
Total (Includes all files) 3.4 MB 0.01%↑3.4 MB
Tarball size 1.2 MB 0.01%↑1.2 MB
Unchanged files
File Size
.changeset/big-bushes-design.md 79 B
.changeset/config.json 313 B
.changeset/full-frogs-join.md 80 B
.changeset/README.md 510 B
.codesandbox/ci.json 38 B
.editorconfig 161 B
.gitattributes 152 B
.github/workflows/autofix.yml 928 B
.github/workflows/ci.yml 1.6 kB
.github/workflows/pkg-pr-new.yml 695 B
.github/workflows/pkg-size.yml 609 B
.github/workflows/release.yml 1.3 kB
.nano-staged.js 48 B
.nvmrc 6 B
.postcssrc.cjs 51 B
.prettierignore 23 B
.prettierrc 24 B
.remarkrc 159 B
.renovaterc 49 B
.simple-git-hooks.js 49 B
.yarn/plugins/plugin-prepare-lifecycle.cjs 202 B
.yarn/releases/yarn-4.9.2.cjs 3.0 MB
.yarnrc.yml 397 B
assets/pkg.svg 15.1 kB
assets/sh.png 14.4 kB
CHANGELOG.md 393 B
docs/App.tsx 1.2 kB
docs/global.css 321 B
docs/index.tsx 211 B
eslint.config.js 503 B
index.html 414 B
LICENSE 1.1 kB
package.json 3.4 kB
packages/autocorrect/CHANGELOG.md 2.2 kB
packages/autocorrect/index.d.cts 63 B
packages/autocorrect/LICENSE 1.1 kB
packages/autocorrect/package.json 1.1 kB
packages/autocorrect/README.md 4.0 kB
packages/autocorrect/src/index.ts 1.4 kB
packages/autocorrect/src/types.ts 78 B
packages/autocorrect/test/__snapshots__/fixtures.spec.ts.snap 4.7 kB
packages/autocorrect/test/fixtures.spec.ts 961 B
packages/autocorrect/test/fixtures/test.css 189 B
packages/autocorrect/test/fixtures/test.go 470 B
packages/autocorrect/test/fixtures/test.html 1.1 kB
packages/autocorrect/test/fixtures/test.md 1.1 kB
packages/autocorrect/test/fixtures/test.py 368 B
packages/autocorrect/test/fixtures/test.rb 234 B
packages/autocorrect/test/fixtures/test0.js 453 B
packages/autocorrect/tsconfig.json 154 B
packages/pkg/CHANGELOG.md 12.0 kB
packages/pkg/index.d.cts 47 B
packages/pkg/LICENSE 16.7 kB
packages/pkg/package.json 1.0 kB
packages/pkg/src/index.ts 2.3 kB
packages/pkg/src/rules/files.ts 1.7 kB
packages/pkg/src/rules/object.ts 899 B
packages/pkg/src/rules/sort.ts 2.7 kB
packages/pkg/src/types.ts 1.1 kB
packages/pkg/src/utils.ts 596 B
packages/pkg/test/__snapshots__/engines.spec.ts.snap 158 B
packages/pkg/test/__snapshots__/files.spec.ts.snap 173 B
packages/pkg/test/__snapshots__/ignore-sort.spec.ts.snap 1.1 kB
packages/pkg/test/__snapshots__/sort-order.spec.ts.snap 964 B
packages/pkg/test/__snapshots__/test.spec.ts.snap 2.0 kB
packages/pkg/test/engines.spec.ts 417 B
packages/pkg/test/files.spec.ts 409 B
packages/pkg/test/fixtures/fixture1.json 1.0 kB
packages/pkg/test/fixtures/fixture2.json 863 B
packages/pkg/test/fixtures/fixture3.json 430 B
packages/pkg/test/ignore-sort.spec.ts 414 B
packages/pkg/test/sort-order.spec.ts 442 B
packages/pkg/test/test.spec.ts 2.3 kB
packages/pkg/tsconfig.json 154 B
packages/sh/CHANGELOG.md 15.3 kB
packages/sh/index.d.cts 45 B
packages/sh/LICENSE 1.1 kB
packages/sh/package.json 1.4 kB
packages/sh/README.md 10.4 kB
packages/sh/src/index.ts 13.3 kB
packages/sh/test/__snapshots__/fixtures.spec.ts.snap 29.2 kB
packages/sh/test/__snapshots__/shellscript.spec.ts.snap 394 B
packages/sh/test/error.spec.ts 482 B
packages/sh/test/fixtures.spec.ts 1.2 kB
packages/sh/test/fixtures/.dockerignore 108 B
packages/sh/test/fixtures/.nvmrc 6 B
packages/sh/test/fixtures/.properties 177 B
packages/sh/test/fixtures/133.sh 5.2 kB
packages/sh/test/fixtures/162.sh 15.7 kB
packages/sh/test/fixtures/182.sh 1.9 kB
packages/sh/test/fixtures/191.sh 1.7 kB
packages/sh/test/fixtures/278.Dockerfile 32 B
packages/sh/test/fixtures/292.Dockerfile 95 B
packages/sh/test/fixtures/376.Dockerfile 217 B
packages/sh/test/fixtures/384.Dockerfile 51 B
packages/sh/test/fixtures/398.Dockerfile 64 B
packages/sh/test/fixtures/441.Dockerfile 219 B
packages/sh/test/fixtures/445.Dockerfile 198 B
packages/sh/test/fixtures/445.sh 105 B
packages/sh/test/fixtures/Dockerfile 394 B
packages/sh/test/fixtures/hosts 406 B
packages/sh/test/fixtures/jvm.options 162 B
packages/sh/test/fixtures/no-ext 38 B
packages/sh/test/fixtures/shell.sh 368 B
packages/sh/test/loc-functions.spec.ts 1.2 kB
packages/sh/test/parser.spec.ts 2.1 kB
packages/sh/tsconfig.json 154 B
packages/sql/CHANGELOG.md 11.6 kB
packages/sql/index.d.cts 47 B
packages/sql/LICENSE 1.1 kB
packages/sql/package.json 1.3 kB
packages/sql/README.md 7.0 kB
packages/sql/src/index.ts 13.0 kB
packages/sql/test/__snapshots__/fixtures-eol.spec.ts.snap 886 B
packages/sql/test/__snapshots__/fixtures.spec.ts.snap 40.3 kB
packages/sql/test/__snapshots__/sql.spec.ts.snap 374 B
packages/sql/test/fixtures-eol.spec.ts 1.4 kB
packages/sql/test/fixtures-eol/556.sql 73 B
packages/sql/test/fixtures-eol/557.sql 69 B
packages/sql/test/fixtures-eol/558.sql 69 B
packages/sql/test/fixtures-eol/559.sql 73 B
packages/sql/test/fixtures.spec.ts 1.8 kB
packages/sql/test/fixtures/144.sql 68 B
packages/sql/test/fixtures/233.sql 68 B
packages/sql/test/fixtures/277.sql 88 B
packages/sql/test/fixtures/279.sql 106 B
packages/sql/test/fixtures/291.sql 1.2 kB
packages/sql/test/fixtures/334.sql 15 B
packages/sql/test/fixtures/405.sql 160 B
packages/sql/test/fixtures/basic.sql 120 B
packages/sql/test/sql.spec.ts 660 B
packages/sql/tsconfig.json 154 B
packages/toml/CHANGELOG.md 2.2 kB
packages/toml/index.d.cts 49 B
packages/toml/LICENSE 1.1 kB
packages/toml/package.json 1.1 kB
packages/toml/README.md 5.2 kB
packages/toml/src/index.ts 1.3 kB
packages/toml/src/options.ts 2.6 kB
packages/toml/src/types.ts 381 B
packages/toml/test/__snapshots__/fixtures.spec.ts.snap 493 B
packages/toml/test/fixtures.spec.ts 792 B
packages/toml/test/fixtures/comments.toml 87 B
packages/toml/test/fixtures/fixture1.toml 162 B
packages/toml/tsconfig.json 154 B
public/android-chrome-192x192.png 3.5 kB
public/android-chrome-512x512.png 12.6 kB
public/apple-touch-icon.png 3.5 kB
public/favicon-16x16.png 309 B
public/favicon-32x32.png 547 B
public/favicon.ico 15.4 kB
public/site.webmanifest 288 B
README.md 6.8 kB
scripts/format.ts 593 B
scripts/languages.ts 3.0 kB
test/global.d.ts 41 B
test/tsconfig.json 223 B
tsconfig.base.json 89 B
tsconfig.json 275 B
vercel.json 229 B
vite.config.ts 544 B
vitest.config.ts 541 B

🤖 This report was automatically generated by pkg-size-action

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🔭 Outside diff range comments (2)
.github/workflows/size-limit.yml (1)

1-5: 🛠️ Refactor suggestion

Add explicit permissions block.
Define minimal permissions for the workflow to scope the GITHUB_TOKEN and satisfy CodeQL recommendations.

permissions:
  contents: read

name: Size Limit
on:
  pull_request:
    branches:
      - master
...
.github/workflows/vercel.yml (1)

1-5: 🛠️ Refactor suggestion

Add explicit permissions block.
Scope GITHUB_TOKEN privileges by adding a permissions section and limit to required scopes.

permissions:
  contents: read
  pull-requests: write

name: Vercel Deploy
...
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d5442c8 and 41747eb.

📒 Files selected for processing (4)
  • .github/workflows/size-limit.yml (1 hunks)
  • .github/workflows/vercel.yml (1 hunks)
  • .size-limit.json (1 hunks)
  • packages/pkg/README.md (1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/size-limit.yml

14-14: got unexpected character ' ' while lexing == operator, expecting '='

(expression)

.github/workflows/vercel.yml

15-15: got unexpected character ' ' while lexing == operator, expecting '='

(expression)

🪛 GitHub Check: CodeQL
.github/workflows/size-limit.yml

[warning] 14-33: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

.github/workflows/vercel.yml

[warning] 15-36: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

⏰ Context from checks skipped due to timeout of 90000ms (15)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Package Size Report
  • GitHub Check: Lint and Test with Node.js 20 on windows-latest
  • GitHub Check: Lint and Test with Node.js 24 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 24 on windows-latest
  • GitHub Check: Lint and Test with Node.js 24 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest
🔇 Additional comments (4)
.size-limit.json (3)

4-4: Verify updated size limit for autocorrect package.
Ensure that packages/autocorrect/lib/index.js remains under 500B after recent changes to avoid CI failures.


8-8: Validate increased size limit for pkg package.
Confirm that packages/pkg/lib/index.js does not exceed the new 600B limit, reflecting additional features.


12-12: Check reduced size limit for sh package.
Verify that packages/sh/lib/index.js stays within the tightened 3kB boundary.

packages/pkg/README.md (1)

171-180: Ensure FormatOptions support in code.
The docs introduce the FormatOptions interface; please verify that the package implementation exposes and honors these options at runtime.

If needed, update usage examples or API docs to demonstrate default behaviors and integration points.

Copy link

sonarqubecloud bot commented Jun 7, 2025

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 2971f6e in 54 seconds. Click for details.
  • Reviewed 69 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/size-limit.yml:14
  • Draft comment:
    Ensure 'if: ${{ github.repository_owner == 'un-ts' }}' is intentional to restrict the job to the repo owner.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. .github/workflows/vercel.yml:15
  • Draft comment:
    Confirm that limiting the deploy job to 'un-ts' with the if condition is as intended.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. .size-limit.json:4
  • Draft comment:
    Verify updated size limits are correct: autocorrect from '540B' to '500B', pkg from '500B' to '600B', sh from '3.4kB' to '3kB', and sql to '2.5kB'.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. packages/pkg/README.md:171
  • Draft comment:
    The new Format Options docs look clear; consider adding an example usage for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_iIecWdxOdDPlzH88

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

github-actions bot commented Jun 7, 2025

size-limit report 📦

Path Size
packages/autocorrect/lib/index.js 477 B (0%)
packages/pkg/lib/index.js 572 B (0%)
packages/sh/lib/index.js 2.68 KB (0%)
packages/sql/lib/index.js 2.04 KB (0%)

Copy link
Contributor

github-actions bot commented Jun 7, 2025

Deploy preview for prettier ready!

✅ Preview
https://prettier-20qn3j71s-1stg.vercel.app

Built with commit 2971f6e.
This pull request is being automatically deployed with vercel-action

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (2)
.github/workflows/vercel.yml (1)

15-15: Duplicate repo-owner condition – extract into a variable
Consider centralizing the github.repository_owner == 'un-ts' check into an environment variable (e.g., REPO_OWNER) to ensure consistency across workflows and avoid copy/paste.

🧰 Tools
🪛 GitHub Check: CodeQL

[warning] 15-36: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

.github/workflows/size-limit.yml (1)

14-14: Duplicate repo-owner condition – extract into a variable
As above, you may extract the github.repository_owner == 'un-ts' expression into a shared env var (e.g., REPO_OWNER) for maintainability across all workflows.

🧰 Tools
🪛 GitHub Check: CodeQL

[warning] 14-33: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

🧹 Nitpick comments (2)
.github/workflows/vercel.yml (1)

15-15: Add explicit permissions for GITHUB_TOKEN
To follow least-privilege principles and resolve the CodeQL warning, declare a permissions block at the top of the workflow (or within the deploy job) to scope down GITHUB_TOKEN. For example:

permissions:
  contents: read
  id-token: write  # only if OIDC authentication is needed
🧰 Tools
🪛 GitHub Check: CodeQL

[warning] 15-36: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

.github/workflows/size-limit.yml (1)

14-14: Add explicit permissions for GITHUB_TOKEN
To adhere to least-privilege security practices and address the CodeQL warning, include a permissions block to scope down GITHUB_TOKEN, for example:

permissions:
  contents: read
🧰 Tools
🪛 GitHub Check: CodeQL

[warning] 14-33: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 41747eb and 2971f6e.

📒 Files selected for processing (4)
  • .github/workflows/size-limit.yml (1 hunks)
  • .github/workflows/vercel.yml (1 hunks)
  • .size-limit.json (1 hunks)
  • packages/pkg/README.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • .size-limit.json
  • packages/pkg/README.md
🧰 Additional context used
🪛 GitHub Check: CodeQL
.github/workflows/size-limit.yml

[warning] 14-33: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

.github/workflows/vercel.yml

[warning] 15-36: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

⏰ Context from checks skipped due to timeout of 90000ms (16)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: publish
  • GitHub Check: deploy
  • GitHub Check: Lint and Test with Node.js 20 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest
  • GitHub Check: size-limit
  • GitHub Check: Lint and Test with Node.js 24 on windows-latest
  • GitHub Check: Package Size Report
  • GitHub Check: Lint and Test with Node.js 22 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 on windows-latest
  • GitHub Check: Lint and Test with Node.js 24 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 on windows-latest
  • GitHub Check: Lint and Test with Node.js 24 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest

@JounQin JounQin merged commit b3f9e4a into master Jun 7, 2025
44 checks passed
@JounQin JounQin deleted the docs/options branch June 7, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant