[PR #51] [MERGED] feat: implement long-running repository event monitoring system #58

Closed
opened 2026-10-27 21:09:09 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/51
Author: @snomiao
Created: 8/14/2025
Status: ✅ Merged
Merged: 8/16/2025
Merged by: @snomiao

Base: main ← Head: sno-label-op-system


📝 Commits (8)

  • 86b7feb feat(label-op): implement long-running repository event monitoring system
  • d6938ea feat(label-op): add webhook support for real-time GitHub event monitoring
  • d654c62 feat(gh-service): refactor webhook system from label-op to standalone service
  • d979969 feat: implement cached GitHub client and refactor monitoring system
  • afd57be feat: implement core ping system for important PR review tracking
  • ebbebf8 feat(ghc.ts): add configurable cache TTL based on LOCAL_DEV environment variable to improve development experience
  • bf472be fix: remove top-level await from ghc.ts to resolve Vercel build errors
  • e68c81e fix: resolve Vercel CI/CD build issues

📊 Changes

35 files changed (+2377 additions, -38 deletions)

View changed files

📝 .env (+3 -0)
📝 .gitignore (+7 -1)
➕ CLAUDE.md (+104 -0)
➕ WEBHOOK_SETUP.md (+81 -0)
➕ app/tasks/coreping/index.tsx (+231 -0)
📝 app/tasks/gh-design/gh-design.ts (+3 -0)
➕ app/tasks/gh-desktop-release-notification/COMFY_PR_CACHE_DIR.ts (+3 -0)
📝 app/tasks/gh-desktop-release-notification/upsertSlackMessage.ts (+64 -1)
📝 app/tasks/page.tsx (+1 -1)
📝 app/tasks/run-gh-tasks.ts (+1 -1)
📝 bun.lock (+128 -2)
📝 docker-compose.yml (+34 -20)
➕ gh-service/index.tsx (+0 -0)
📝 next.config.ts (+12 -0)
📝 package.json (+6 -1)
➕ run/.dockerignore (+12 -0)
➕ run/Dockerfile (+28 -0)
➕ run/README.md (+285 -0)
➕ run/cloudbuild.yaml (+68 -0)
➕ run/deploy.sh (+162 -0)

...and 15 more files

📄 Description

Summary

  • Implement RepoEventMonitor class that polls GitHub API every 30 seconds
  • Monitor new issues, PRs, comments, and label changes across 4 repositories
  • Console logging with timestamps and emoji indicators for different event types
  • Track state to avoid duplicate notifications
  • Include health endpoint for monitoring service status

Test plan

  • Run bun run run/label-op.tsx to start monitoring
  • Verify console logs show repository events with timestamps
  • Confirm health endpoint responds at /health
  • Monitor for new issues/PRs/comments in listed repositories
  • Verify no duplicate notifications for same events

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/Comfy-PR/pull/51 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 8/14/2025 **Status:** ✅ Merged **Merged:** 8/16/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-label-op-system` --- ### 📝 Commits (8) - [`86b7feb`](https://github.com/Comfy-Org/Comfy-PR/commit/86b7febca0934d9adc49592f778c1bd5d5d4f457) feat(label-op): implement long-running repository event monitoring system - [`d6938ea`](https://github.com/Comfy-Org/Comfy-PR/commit/d6938ea5c86eba5170786dae5588150448c1c95f) feat(label-op): add webhook support for real-time GitHub event monitoring - [`d654c62`](https://github.com/Comfy-Org/Comfy-PR/commit/d654c62c60215d6f55037d72f41175a750441cb6) feat(gh-service): refactor webhook system from label-op to standalone service - [`d979969`](https://github.com/Comfy-Org/Comfy-PR/commit/d979969664d3e394498125916fe251883b5225b7) feat: implement cached GitHub client and refactor monitoring system - [`afd57be`](https://github.com/Comfy-Org/Comfy-PR/commit/afd57beead86bb4c7df5385f0acb6587b8306aa4) feat: implement core ping system for important PR review tracking - [`ebbebf8`](https://github.com/Comfy-Org/Comfy-PR/commit/ebbebf86c07d9a81d4c371d0a6167177bef5097d) feat(ghc.ts): add configurable cache TTL based on LOCAL_DEV environment variable to improve development experience - [`bf472be`](https://github.com/Comfy-Org/Comfy-PR/commit/bf472befd537e3f2af916651f9a2780b5644e9c0) fix: remove top-level await from ghc.ts to resolve Vercel build errors - [`e68c81e`](https://github.com/Comfy-Org/Comfy-PR/commit/e68c81e88a2fcd18090e1408e1ffeaee8816ba2c) fix: resolve Vercel CI/CD build issues ### 📊 Changes **35 files changed** (+2377 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `.env` (+3 -0) 📝 `.gitignore` (+7 -1) ➕ `CLAUDE.md` (+104 -0) ➕ `WEBHOOK_SETUP.md` (+81 -0) ➕ `app/tasks/coreping/index.tsx` (+231 -0) 📝 `app/tasks/gh-design/gh-design.ts` (+3 -0) ➕ `app/tasks/gh-desktop-release-notification/COMFY_PR_CACHE_DIR.ts` (+3 -0) 📝 `app/tasks/gh-desktop-release-notification/upsertSlackMessage.ts` (+64 -1) 📝 `app/tasks/page.tsx` (+1 -1) 📝 `app/tasks/run-gh-tasks.ts` (+1 -1) 📝 `bun.lock` (+128 -2) 📝 `docker-compose.yml` (+34 -20) ➕ `gh-service/index.tsx` (+0 -0) 📝 `next.config.ts` (+12 -0) 📝 `package.json` (+6 -1) ➕ `run/.dockerignore` (+12 -0) ➕ `run/Dockerfile` (+28 -0) ➕ `run/README.md` (+285 -0) ➕ `run/cloudbuild.yaml` (+68 -0) ➕ `run/deploy.sh` (+162 -0) _...and 15 more files_ </details> ### 📄 Description ## Summary - Implement RepoEventMonitor class that polls GitHub API every 30 seconds - Monitor new issues, PRs, comments, and label changes across 4 repositories - Console logging with timestamps and emoji indicators for different event types - Track state to avoid duplicate notifications - Include health endpoint for monitoring service status ## Test plan - [x] Run `bun run run/label-op.tsx` to start monitoring - [x] Verify console logs show repository events with timestamps - [x] Confirm health endpoint responds at `/health` - [ ] Monitor for new issues/PRs/comments in listed repositories - [ ] Verify no duplicate notifications for same events 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:09:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/Comfy-PR#58
No description provided.