refactor: deduplicate workspace committer role into shared module #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/10-dedup-committer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Extracts the nearly-identical committer role from
develop-senseanddevelop-workflowinto a single shared module atworkflows/_shared/workspace-committer.ts, parameterizing the two points of divergence (branch example and conventional commit scope hint).Why
Both workflows had duplicate committer implementations (
index.tsidentical,prompt.tsdiffering in only two strings). This violates DRY and makes future changes error-prone (issue #10).Changes
workflows/_shared/workspace-committer.ts— shared committer role withconventionalCommitScopeHintandbranchCheckoutExampleparametersdevelop-sense/roles/committer/index.tsanddevelop-workflow/roles/committer/index.tsto thin re-exportsprompt.tsfrom both workflowsbuild.tsto pass workflow-specific parameterstsconfig.jsonto include../_shared/**/*.tsRef
#10
Pull request closed