Add automated bead-to-PR workflow mode to 'co work create' #49
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.
Summary
This PR introduces an automated end-to-end workflow mode for
co work createthat transforms a bead into a complete pull request without manual intervention.Key Features
--beadflag forco work createthat triggers automated workflow modefeat/add-user-authentication)blocked_bydependenciesco task set-review-epiccommand - links review tasks to their issue epics for accurate issue trackingChanges
New Files:
cmd/work_automated.go- Complete automated workflow orchestrationcmd/work_automated_test.go- 35+ tests for branch name generationinternal/db/migrations/006_task_metadata.sql- Task metadata tableinternal/db/task_metadata.go- Metadata operations (get/set/delete)sql/queries/task_metadata.sql- SQLC query definitionsModified Files:
cmd/work.go- Added--beadflag supportcmd/task.go- Addedset-review-epicsubcommandinternal/beads/client.go- AddedGetTransitiveDependenciesInDirandGetBeadWithChildrenInDirinternal/beads/client_test.go- Integration tests for new functionsinternal/db/schema.sql- Added task_metadata tableinternal/db/sqlc/*- Regenerated SQLC codeUsage
The automated workflow:
Technical Details
Review-Fix Loop Improvements:
review_epic_idmetadata to track which beads belong to a reviewTask Metadata System:
task_metadatatablereview_epic_idfor review task trackingco task showoutputBeads Resolved
Test Plan
go test ./...passes🤖 Generated with Claude Code