Conversation
There was a problem hiding this comment.
Pull Request Overview
Updates the webhook consumer polling configuration to use a configurable interval instead of a hardcoded value, increasing the default polling interval from 1 second to 5 seconds for better performance.
- Replaced hardcoded 1000ms poll interval with configurable
WEBHOOK_POLL_INTERVALfrom config - Increased default polling interval from 1000ms to 5000ms
- Fixed import extension inconsistency in logger config
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/index.ts | Added config import and replaced hardcoded poll interval with configurable value |
| src/config/defaults.ts | Updated default webhook poll interval from 1000ms to 5000ms |
| src/config/logger.ts | Removed .js extension from import statement for consistency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
🩹 Patch Image Built SuccessfullyTest this patch with Docker: # Docker Hub
docker pull wgtechlabs/unthread-discord-bot:patch-78433d6
# GitHub Container Registry
docker pull ghcr.io/wgtechlabs/unthread-discord-bot:patch-78433d6Deploy to Railway/Cloud for testing:
|
Overview
Labels (5 changes)
-org.opencontainers.image.created=2025-09-24T10:57:17Z
+org.opencontainers.image.created=2025-10-01T13:01:35Z
org.opencontainers.image.description=Turn Discord servers into comprehensive support ticket hubs with real-time bidirectional communication — powered by Unthread.io.
-org.opencontainers.image.licenses=AGPL-3.0
-org.opencontainers.image.revision=94752732455cb612bee529a58e25dcfc52c755f5
+org.opencontainers.image.revision=78433d6aa2bc5d6e96d3bb8d65a43900e58677ca
org.opencontainers.image.source=https://github.com/wgtechlabs/unthread-discord-bot
org.opencontainers.image.title=Unthread Discord Bot
-org.opencontainers.image.url=https://github.com/wgtechlabs/unthread-discord-bot
-org.opencontainers.image.version=1.0.4Packages and Vulnerabilities (15 package changes and 1 vulnerability changes)
Changes for packages of type
|
| Package | Versionwgtechlabs/unthread-discord-bot:latest |
Versionwgtechlabs/unthread-discord-bot:pr-99-78433d6 |
|
|---|---|---|---|
| ➖ | node | 22.16.0 |
Changes for packages of type github (1 changes)
| Package | Versionwgtechlabs/unthread-discord-bot:latest |
Versionwgtechlabs/unthread-discord-bot:pr-99-78433d6 |
|
|---|---|---|---|
| ➕ | node | 22.16.0 |
Changes for packages of type npm (1 changes)
| Package | Versionwgtechlabs/unthread-discord-bot:latest |
Versionwgtechlabs/unthread-discord-bot:pr-99-78433d6 |
|
|---|---|---|---|
| ♾️ | unthread-discord-bot | 1.0.4 |
1.1.0 |
📝 WalkthroughWalkthroughSir, the update raises WEBHOOK_POLL_INTERVAL from 1000 to 5000, standardizes an import path in logger, and refactors initialization to fetch configuration via getAllConfig, wiring the webhook consumer’s pollInterval to that value and adding a success log after startup. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)src/index.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
Comment |
Summary by CodeRabbit
New Features
Chores