Skip to content

Add backend support for /warn command#38

Open
itasimo wants to merge 2 commits into
mainfrom
itasimo/warning
Open

Add backend support for /warn command#38
itasimo wants to merge 2 commits into
mainfrom
itasimo/warning

Conversation

@itasimo

@itasimo itasimo commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Related to telegram#82

itasimo added 2 commits June 25, 2026 23:19
Add warning schema to the database
Add TRPC endpoints for managing warnings
Add loggerProcedure is used to log any errors that occur during the execution of these procedures, to replace the try/catch statements in the TRPC endpoint handlers
Add support to automatically expire warnings, kick and ban users
- Fixed a bug where `deleteById`, `getTotalActiveCount`, and `getActiveCountInGroup` did not account for warning expiration states
- Updated `deleteById` to return a success/failure status to the client.
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@itasimo, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 53 minutes and 5 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f1270048-3daa-45b4-9da9-a871580d8525

📥 Commits

Reviewing files that changed from the base of the PR and between 7a1fda9 and dccd5f1.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (11)
  • drizzle/0015_bitter_nighthawk.sql
  • drizzle/meta/0015_snapshot.json
  • drizzle/meta/_journal.json
  • pnpm-workspace.yaml
  • src/cron.ts
  • src/db/schema/tg/audit-log.ts
  • src/db/schema/tg/index.ts
  • src/db/schema/tg/warnings.ts
  • src/routers/tg/index.ts
  • src/routers/tg/warnings.ts
  • src/utils/loggerProc.ts

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

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

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