-
Notifications
You must be signed in to change notification settings - Fork 5
feat(supervisor): auto-create GitHub issues when adding tasks (t149) #469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
Summary of ChangesHello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant enhancement to the supervisor system by automating the creation of GitHub issues for newly added tasks. This integration streamlines task management by linking tasks directly to their corresponding GitHub issues, improving traceability and centralizing task-related discussions. The system also automatically updates the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sat Feb 7 19:48:19 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a valuable feature to automatically create GitHub issues when tasks are added, which improves visibility and integration with project tracking. The implementation is well-structured, featuring robust checks for dependencies like the gh CLI, graceful error handling, and clear configuration options. I've identified one high-severity bug in the file update logic that could cause the script to fail with certain task descriptions. A code suggestion is provided to address this and ensure the feature is reliable.
| new_line="${task_line} ref:GH#${issue_number}" | ||
| fi | ||
|
|
||
| sed_inplace "${line_num}s|.*|${new_line}|" "$todo_file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sed command on this line is vulnerable to special characters that might be present in the $new_line variable. If a task description in TODO.md contains the sed delimiter (|), an ampersand (&), or a backslash (\), this command will fail or produce incorrect output. This could lead to unexpected script failures or corruption of TODO.md when adding tasks with certain descriptions. To make this robust, the $new_line variable should be escaped before being used in the sed replacement string.
| sed_inplace "${line_num}s|.*|${new_line}|" "$todo_file" | |
| new_line=$(printf '%s' "$new_line" | sed -e 's/[\\&|]/\\&/g') | |
| sed_inplace "${line_num}s|.*|${new_line}|" "$todo_file" |



Summary
supervisor-helper.sh addorbatch --taskst{NNN}: descriptiontitle convention, with dedup check to avoid duplicatesref:GH#Nreference and commits/pushes the changeChanges
New functions in
supervisor-helper.sh:create_github_issue()- Creates a GitHub issue viagh issue create, with graceful fallbacks (no gh CLI, not authenticated, no GitHub remote). Deduplicates by searching for existing issues with the task ID prefix. Auto-detects labels from description keywords. Storesissue_urlin supervisor DB.update_todo_with_issue_ref()- Appendsref:GH#Nto the task line in TODO.md, inserting before timestamp fields. Commits and pushes the change.Modified:
cmd_add()- Now callscreate_github_issue()+update_todo_with_issue_ref()after DB insert. Added--no-issueflag to skip.cmd_batch()- Inherits issue creation via existingcmd_add()delegation for auto-added tasks.issue_url TEXTcolumn to tasks table + migration for existing DBs.--no-issueoption,SUPERVISOR_AUTO_ISSUEenv var, and integration docs.Controls
--no-issuesupervisor-helper.sh add t001 --no-issueSUPERVISOR_AUTO_ISSUE=falseTesting
bash -nsyntax check: PASS--no-issueflag,SUPERVISOR_AUTO_ISSUE=false, dedup detectionCloses #455