[PR #37] [MERGED] GitHub Bug Cop Task - Automated issue labeling and tracking #42

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

📋 Pull Request Information

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

Base: main ← Head: sno-bug-cop


📝 Commits (8)

  • afcb40f chore: update dependencies and refactor code
  • 8d32b8c Merge branch 'main' of github.com:Comfy-Org/Comfy-PR into sno-bug-cop
  • 624d6cc Merge main into sno-bug-cop and resolve conflicts
  • 92c2118 fix(gh-bugcop.tsx): correct statusReason string to fix typo from "unknown" to "unknown" for clarity
  • 2a73970 fix(gh-bugcop.tsx): correct typo in statusReason from "unknow" to "unknown" for clarity and accuracy
  • 66d46f9 chore(gh-bugcop.tsx): comment out unused code for issue flow processing to improve code clarity and maintainability
  • 190f9eb fix(gh-bugcop.tsx): ensure database closes properly in CI environment by awaiting db.close() before exiting the process
  • efb6b2f refactor(echoBunShell.ts): remove unused ShellPromise import to clean up code and improve readability

📊 Changes

17 files changed (+991 additions, -234 deletions)

View changed files

➕ .github/workflows/gh-bugcop.yaml (+28 -0)
📝 app/api/router.ts (+2 -1)
➕ app/tasks/gh-bugcop/GithubBugcopTaskStatus.tsx (+173 -0)
➕ app/tasks/gh-bugcop/gh-bugcop.tsx (+290 -0)
➕ app/tasks/gh-bugcop/page.tsx (+150 -0)
➕ app/tasks/gh-design/createTimeLogger.ts (+6 -0)
📝 app/tasks/gh-design/gh-design.ts (+3 -4)
📝 app/tasks/page.tsx (+12 -11)
📝 bun.lock (+302 -207)
📝 package.json (+9 -2)
📝 src/GithubActionUpdateTask/updateGithubActionPrepareBranch.ts (+4 -4)
📝 src/GithubActionUpdateTask/updateGithubActionTask.ts (+1 -1)
📝 src/cli/echoBunShell.ts (+2 -2)
📝 src/db/TaskMeta.ts (+1 -1)
📝 src/gh/index.ts (+4 -0)
📝 src/parseIssueUrl.ts (+3 -0)
📝 src/slack/index.ts (+1 -1)

📄 Description

Summary

• Add automated GitHub Bug Cop task that monitors issues labeled with "bug-cop:ask-for-info"
• Automatically removes the asking label and adds "bug-cop:answered" when users provide additional context
• Includes GitHub Actions workflow to run the task every 5 minutes
• Provides a dashboard interface to view and track all bug cop tasks

Features

• Automated Issue Monitoring: Scans issues across Comfy repositories for bug-cop labels
• Smart Label Management: Detects when users respond with additional context and updates labels accordingly
• Timeline Tracking: Monitors issue comments and body updates to determine if issues have been answered
• Dashboard Interface: Web interface to view all tracked issues and their current status
• GitHub Actions Integration: Automated workflow runs every 5 minutes to keep labels up-to-date

Test plan

  • Verify the GitHub Actions workflow runs successfully
  • Test that issues with "bug-cop:ask-for-info" label are properly detected
  • Confirm that labels are updated when users add comments or update issue bodies
  • Check that the dashboard displays all tracked issues correctly
  • Ensure the task handles edge cases (closed issues, bot comments, etc.)

🤖 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/37 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 7/18/2025 **Status:** ✅ Merged **Merged:** 7/18/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-bug-cop` --- ### 📝 Commits (8) - [`afcb40f`](https://github.com/Comfy-Org/Comfy-PR/commit/afcb40fae97e9c17ffa9629fc5941b4f571b1e8d) chore: update dependencies and refactor code - [`8d32b8c`](https://github.com/Comfy-Org/Comfy-PR/commit/8d32b8c48b53dff7909cf84295968a14c7251218) Merge branch 'main' of github.com:Comfy-Org/Comfy-PR into sno-bug-cop - [`624d6cc`](https://github.com/Comfy-Org/Comfy-PR/commit/624d6cce44e3b8029c023858e23a9e1c598467c9) Merge main into sno-bug-cop and resolve conflicts - [`92c2118`](https://github.com/Comfy-Org/Comfy-PR/commit/92c2118a8af7adcb436b4ffafa87db0b7085c5c1) fix(gh-bugcop.tsx): correct statusReason string to fix typo from "unknown" to "unknown" for clarity - [`2a73970`](https://github.com/Comfy-Org/Comfy-PR/commit/2a739706fc160e36b4670c72a9e50fc06ebf06b6) fix(gh-bugcop.tsx): correct typo in statusReason from "unknow" to "unknown" for clarity and accuracy - [`66d46f9`](https://github.com/Comfy-Org/Comfy-PR/commit/66d46f9fd893600471bd7e1586eade1bfb8c5671) chore(gh-bugcop.tsx): comment out unused code for issue flow processing to improve code clarity and maintainability - [`190f9eb`](https://github.com/Comfy-Org/Comfy-PR/commit/190f9eb41eca77c9d1189fc2a458696590e610d2) fix(gh-bugcop.tsx): ensure database closes properly in CI environment by awaiting db.close() before exiting the process - [`efb6b2f`](https://github.com/Comfy-Org/Comfy-PR/commit/efb6b2f2637339572ba107cfdf018aa892ad3a81) refactor(echoBunShell.ts): remove unused ShellPromise import to clean up code and improve readability ### 📊 Changes **17 files changed** (+991 additions, -234 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/gh-bugcop.yaml` (+28 -0) 📝 `app/api/router.ts` (+2 -1) ➕ `app/tasks/gh-bugcop/GithubBugcopTaskStatus.tsx` (+173 -0) ➕ `app/tasks/gh-bugcop/gh-bugcop.tsx` (+290 -0) ➕ `app/tasks/gh-bugcop/page.tsx` (+150 -0) ➕ `app/tasks/gh-design/createTimeLogger.ts` (+6 -0) 📝 `app/tasks/gh-design/gh-design.ts` (+3 -4) 📝 `app/tasks/page.tsx` (+12 -11) 📝 `bun.lock` (+302 -207) 📝 `package.json` (+9 -2) 📝 `src/GithubActionUpdateTask/updateGithubActionPrepareBranch.ts` (+4 -4) 📝 `src/GithubActionUpdateTask/updateGithubActionTask.ts` (+1 -1) 📝 `src/cli/echoBunShell.ts` (+2 -2) 📝 `src/db/TaskMeta.ts` (+1 -1) 📝 `src/gh/index.ts` (+4 -0) 📝 `src/parseIssueUrl.ts` (+3 -0) 📝 `src/slack/index.ts` (+1 -1) </details> ### 📄 Description ## Summary • Add automated GitHub Bug Cop task that monitors issues labeled with "bug-cop:ask-for-info" • Automatically removes the asking label and adds "bug-cop:answered" when users provide additional context • Includes GitHub Actions workflow to run the task every 5 minutes • Provides a dashboard interface to view and track all bug cop tasks ## Features • **Automated Issue Monitoring**: Scans issues across Comfy repositories for bug-cop labels • **Smart Label Management**: Detects when users respond with additional context and updates labels accordingly • **Timeline Tracking**: Monitors issue comments and body updates to determine if issues have been answered • **Dashboard Interface**: Web interface to view all tracked issues and their current status • **GitHub Actions Integration**: Automated workflow runs every 5 minutes to keep labels up-to-date ## Test plan - [x] Verify the GitHub Actions workflow runs successfully - [x] Test that issues with "bug-cop:ask-for-info" label are properly detected - [x] Confirm that labels are updated when users add comments or update issue bodies - [x] Check that the dashboard displays all tracked issues correctly - [ ] Ensure the task handles edge cases (closed issues, bot comments, etc.) 🤖 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:02 +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#42
No description provided.