refactor(slash-commands,main): migrate to adapter factory (MF-10) #317
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!317
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mf10-migrate-slash-main"
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?
Summary
Cleanup of MF-8 (#299) out-of-scope list — migrates
slash-commands.ts+main.tsremaining callsites fromnew ForgejoAdapter(token)tocreateForgeAdapterForRepo(repo, token)so non-Forgejo repos (MF-1 GitHub / MF-2 GitLab) resolve to the rightForgePort.apps/server/src/domain/workflow/slash-commands.ts— 2 callsites inapplyRaiseCapCommand(/raise-capack comment + miss comment). Both hadrepoin scope.apps/server/src/main.ts— 1 callsite inhandleTaskRedispatch(issue fetch before re-dispatch).row.repoin scope.Three callsites migrated total. No exceptions — every site had a concrete repo binding available.
Test plan
tsc --noEmitcleanbiome checkcleanslash-commands.test.ts— 16 pass, 0 fail/raise-cap $5on an open issue → Forgejo comment posted under the right tokenPOST /task/:id/redispatchon a cancelled task → 202 with new task id🤖 Generated with Claude Code