feat: Task Dispatch Pipeline — ClickUp → portal → worker → commit - #13
Merged
Conversation
- lib/tasks.ts: task management (create, dispatch, track, ClickUp event conversion) - api/tasks: REST endpoint for creating/listing/dispatching tasks - tasks page: dashboard to create tasks and monitor progress - webhooks/clickup: upgraded to auto-dispatch tasks to workers - n8n workflow template: ClickUp status change → portal dispatch This is the glue (piece 3/3): when a ClickUp task moves to 'in progress', the webhook triggers a code-gen task dispatched to a worker, which reads the repo, calls the LLM, and commits changes. Vercel auto-rebuilds. The full loop: phone feedback → ClickUp → n8n → worker → commit → deploy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Task Dispatch Pipeline (piece 3/3 for self-sustaining)
The glue that wires everything together. When a ClickUp task moves to "in progress", the system automatically dispatches a code-gen task to a worker, which reads the repo, calls an LLM, and commits the changes.
The full loop
Files (5)
lib/tasks.tsapi/tasks/route.tsGET(list tasks),POST(create + dispatch),PATCH(update result)tasks/page.tsxwebhooks/clickup/route.tsn8n/workflows/clickup-to-codegen.jsonClickUp → Task conversion
taskStatusUpdated→ "in progress"code-gentaskCommentPostedfeedbackDepends on
🎉 All 3 pieces complete!