[PR #30] [MERGED] feat: add [Design] label scanner task bot #34

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

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/30
Author: @snomiao
Created: 7/15/2025
Status: ✅ Merged
Merged: 7/17/2025
Merged by: @snomiao

Base: main ← Head: sno-design-label-track


📝 Commits (10+)

  • 82aa412 feat: add [Design] label scanner task bot
  • 25fa3fd feat: add [Design] label scanner task bot
  • 81a6a4a feat(env): add .env.example file to provide a template for environment variables configuration
  • a6d1a94 feat: refactor CSV download functionality into a separate component
  • fa45942 fix(gh-design.ts): change dryRun variable to be configurable via command line argument to enhance flexibility
  • 01442d9 chore(gh-design.yaml): comment out the scheduled cron job to disable automatic runs
  • 2d214ec chore(gh-design.yaml): update cron job comment to reflect new schedule of every 5 minutes instead of 30 minutes
  • b0eaa76 fix(slack/index.ts): update import statement for DIE from "phpdie" to ensure correct dependency usage
  • 5aa4303 chore(page.tsx): remove commented-out code for better code cleanliness and readability
  • c25e30c chore(workflow): remove SLACK_BOT_CHANNEL from GitHub Actions secrets to streamline configuration

📊 Changes

42 files changed (+1845 additions, -127 deletions)

View changed files

➕ .env.example (+18 -0)
📝 .github/workflows/comfy-pr.yaml (+1 -1)
📝 .github/workflows/gh-bounty.yaml (+1 -0)
➕ .github/workflows/gh-design.yaml (+28 -0)
📝 .gitignore (+4 -1)
📝 app/(dashboard)/rules/layout.tsx (+1 -2)
📝 app/api/auth/[...nextauth]/getAuthUser.tsx (+5 -1)
➖ app/api/openapi.yaml/route.ts (+0 -4)
📝 app/api/router.ts (+106 -6)
📝 app/api/spec.ts (+2 -1)
📝 app/layout.tsx (+8 -1)
➖ app/tasks/SuspenseUse.tsx (+0 -14)
📝 app/tasks/gh-bounty/gh-bounty.ts (+3 -3)
➕ app/tasks/gh-design/GithubDesignTaskMetaEditor.tsx (+230 -0)
➕ app/tasks/gh-design/default-config.ts (+24 -0)
➕ app/tasks/gh-design/gh-design.ts (+278 -0)
➕ app/tasks/gh-design/page.tsx (+179 -0)
➕ app/tasks/gh-design/zGithubDesignTaskMeta.tsx (+31 -0)
➕ app/tasks/github-contributor-analyze/DownloadCSVButton.tsx (+24 -0)
📝 app/tasks/github-contributor-analyze/page.tsx (+5 -15)

...and 22 more files

📄 Description

Sorry for huge pr... just solving chaining problems by updating deps


Summary

  • Created gh-design.ts task bot to scan for [Design] labels on GitHub issues and PRs
  • Added GitHub Action workflow to run scanner every 30 minutes automatically
  • Integrates with existing Slack notification system to send alerts to #product channel
  • Tracks processed items in MongoDB to avoid duplicate notifications

Implementation Details

  • Follows same pattern as existing bounty label scanner (gh-bounty.ts)
  • Scans ComfyUI_frontend, desktop, and ComfyUI repositories
  • Uses notifySlack() for reliable message delivery with queuing
  • Supports dry-run mode for testing (DRY=1 environment variable)
  • Automatic CI exit handling for containerized environments

Test Plan

  • Run task bot locally with DRY=1 to verify scanning works
  • Test Slack notification to #product channel
  • Verify MongoDB tracking prevents duplicate notifications
  • Test GitHub Action workflow triggers properly
  • Confirm proper error handling and logging

🤖 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/30 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/17/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-design-label-track` --- ### 📝 Commits (10+) - [`82aa412`](https://github.com/Comfy-Org/Comfy-PR/commit/82aa412ce6e59549eccdf002151ee4d99fed8562) feat: add [Design] label scanner task bot - [`25fa3fd`](https://github.com/Comfy-Org/Comfy-PR/commit/25fa3fd7305dc853fafa569ff3c88cf2255858a5) feat: add [Design] label scanner task bot - [`81a6a4a`](https://github.com/Comfy-Org/Comfy-PR/commit/81a6a4aacd65a44e39419854aeb9532eca9e9a5b) feat(env): add .env.example file to provide a template for environment variables configuration - [`a6d1a94`](https://github.com/Comfy-Org/Comfy-PR/commit/a6d1a942325f27d182ca5705274aef09bfe799c3) feat: refactor CSV download functionality into a separate component - [`fa45942`](https://github.com/Comfy-Org/Comfy-PR/commit/fa459421df2d8df8efd1655ea5f1583f623b0ab5) fix(gh-design.ts): change dryRun variable to be configurable via command line argument to enhance flexibility - [`01442d9`](https://github.com/Comfy-Org/Comfy-PR/commit/01442d9741ed5f1259378f20265fb95f819bce39) chore(gh-design.yaml): comment out the scheduled cron job to disable automatic runs - [`2d214ec`](https://github.com/Comfy-Org/Comfy-PR/commit/2d214ecdfa262fb2db81d506aa342be6371d71fe) chore(gh-design.yaml): update cron job comment to reflect new schedule of every 5 minutes instead of 30 minutes - [`b0eaa76`](https://github.com/Comfy-Org/Comfy-PR/commit/b0eaa76b42c5a70d38a77d5383b690ce3a0065e0) fix(slack/index.ts): update import statement for DIE from "phpdie" to ensure correct dependency usage - [`5aa4303`](https://github.com/Comfy-Org/Comfy-PR/commit/5aa4303916a0291572655ff9eda2fb5838facbc9) chore(page.tsx): remove commented-out code for better code cleanliness and readability - [`c25e30c`](https://github.com/Comfy-Org/Comfy-PR/commit/c25e30c6283bccfd70a952a4d6a0532da9aa4621) chore(workflow): remove SLACK_BOT_CHANNEL from GitHub Actions secrets to streamline configuration ### 📊 Changes **42 files changed** (+1845 additions, -127 deletions) <details> <summary>View changed files</summary> ➕ `.env.example` (+18 -0) 📝 `.github/workflows/comfy-pr.yaml` (+1 -1) 📝 `.github/workflows/gh-bounty.yaml` (+1 -0) ➕ `.github/workflows/gh-design.yaml` (+28 -0) 📝 `.gitignore` (+4 -1) 📝 `app/(dashboard)/rules/layout.tsx` (+1 -2) 📝 `app/api/auth/[...nextauth]/getAuthUser.tsx` (+5 -1) ➖ `app/api/openapi.yaml/route.ts` (+0 -4) 📝 `app/api/router.ts` (+106 -6) 📝 `app/api/spec.ts` (+2 -1) 📝 `app/layout.tsx` (+8 -1) ➖ `app/tasks/SuspenseUse.tsx` (+0 -14) 📝 `app/tasks/gh-bounty/gh-bounty.ts` (+3 -3) ➕ `app/tasks/gh-design/GithubDesignTaskMetaEditor.tsx` (+230 -0) ➕ `app/tasks/gh-design/default-config.ts` (+24 -0) ➕ `app/tasks/gh-design/gh-design.ts` (+278 -0) ➕ `app/tasks/gh-design/page.tsx` (+179 -0) ➕ `app/tasks/gh-design/zGithubDesignTaskMeta.tsx` (+31 -0) ➕ `app/tasks/github-contributor-analyze/DownloadCSVButton.tsx` (+24 -0) 📝 `app/tasks/github-contributor-analyze/page.tsx` (+5 -15) _...and 22 more files_ </details> ### 📄 Description Sorry for huge pr... just solving chaining problems by updating deps --- ## Summary - Created `gh-design.ts` task bot to scan for [Design] labels on GitHub issues and PRs - Added GitHub Action workflow to run scanner every 30 minutes automatically - Integrates with existing Slack notification system to send alerts to #product channel - Tracks processed items in MongoDB to avoid duplicate notifications ## Implementation Details - Follows same pattern as existing bounty label scanner (`gh-bounty.ts`) - Scans ComfyUI_frontend, desktop, and ComfyUI repositories - Uses `notifySlack()` for reliable message delivery with queuing - Supports dry-run mode for testing (`DRY=1` environment variable) - Automatic CI exit handling for containerized environments ## Test Plan - [x] Run task bot locally with `DRY=1` to verify scanning works - [x] Test Slack notification to #product channel - [x] Verify MongoDB tracking prevents duplicate notifications - [x] Test GitHub Action workflow triggers properly - [x] Confirm proper error handling and logging 🤖 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:08:59 +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#34
No description provided.