Skip to content

Test PR review workflow with intentional typecheck failure#98

Closed
Jacksondr5 wants to merge 19 commits intomainfrom
t3code/compiler-error-pr-test
Closed

Test PR review workflow with intentional typecheck failure#98
Jacksondr5 wants to merge 19 commits intomainfrom
t3code/compiler-error-pr-test

Conversation

@Jacksondr5
Copy link
Copy Markdown
Owner

@Jacksondr5 Jacksondr5 commented Apr 4, 2026

Summary

  • add a deliberate TypeScript assignment error in src/lib/utils.ts
  • create a PR that should fail CI during pnpm typecheck

Validation

  • pnpm typecheck fails with src/lib/utils.ts(4,14): error TS2322: Type 'number' is not assignable to type 'string'.

Summary by CodeRabbit

  • Chores

    • Added three new exported internal constants to the utilities module.
  • Notes

    • No user-facing changes or behavior differences; public-facing functionality remains unchanged.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trade-tracker Error Error Apr 9, 2026 2:42am

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 4, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Added three new exported constants to src/lib/utils.ts: intentionalCompilerError: string = 123, anotherIntentionalCompilerError: boolean = false, and thirdIntentionalCompilerError: Date = "still broken". No changes to cn(...inputs: ClassValue[]).

Changes

Cohort / File(s) Summary
New exported constants
src/lib/utils.ts
Added export const intentionalCompilerError: string = 123;, export const anotherIntentionalCompilerError: boolean = false;, and export const thirdIntentionalCompilerError: Date = "still broken";. cn(...inputs: ClassValue[]) unchanged. These additions contain type/value mismatches that will cause compiler errors.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Test PR review workflow with intentional typecheck failure' accurately reflects the main change—adding intentional TypeScript type errors to test the CI workflow.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/compiler-error-pr-test

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/lib/utils.ts`:
- Around line 4-5: The variable intentionalCompilerError has a TypeScript type
mismatch (declared as string but assigned number); fix by making the declaration
and value consistent—either change the value to a string (e.g., assign "123") or
change the type to number (remove : string or use : number) so
intentionalCompilerError's type matches its assigned value; update the
declaration in src/lib/utils.ts where intentionalCompilerError is defined.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b88b84c6-c40d-400a-b5fc-2dea0b2dedb2

📥 Commits

Reviewing files that changed from the base of the PR and between da2f2a0 and a15a9cb.

📒 Files selected for processing (1)
  • src/lib/utils.ts

Comment thread src/lib/utils.ts Outdated
Copy link
Copy Markdown

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/lib/utils.ts`:
- Line 5: The exported symbol anotherIntentionalCompilerError has a type/value
mismatch (declared as boolean but assigned a string); fix by making the
declaration and initializer consistent — either change the type to string or
(preferably) set the initializer to a boolean literal (e.g., true/false) so
anotherIntentionalCompilerError: boolean matches its assigned value.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 228b7e04-860b-48f8-b3e9-d13a09505657

📥 Commits

Reviewing files that changed from the base of the PR and between b59f385 and 2044016.

📒 Files selected for processing (1)
  • src/lib/utils.ts

Comment thread src/lib/utils.ts Outdated
Copy link
Copy Markdown

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/lib/utils.ts`:
- Line 6: The exported constant thirdIntentionalCompilerError has a type of Date
but is assigned a string, causing TS2322; fix by making the declaration and
value consistent—for example, change the type of thirdIntentionalCompilerError
to string to match the assigned "still broken", or instead assign a Date object
(e.g., new Date(...)) if it must remain Date; update the declaration for
thirdIntentionalCompilerError accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: adc9b8a5-e305-4d65-a9a3-35a97b569aa7

📥 Commits

Reviewing files that changed from the base of the PR and between 599a9c9 and 415012a.

📒 Files selected for processing (1)
  • src/lib/utils.ts

Comment thread src/lib/utils.ts Outdated
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