fix: extend #670 rename migration to cover secret table + token files #786
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!786
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/741"
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?
Extends the boot-time #670 rename migration (boss → code-lead, foreman → architect) to also cover the two artifact types the original migration missed.
migrateSecretsForLegacyTypeRenames()— renamesFORGEJO_TOKEN_BOSS→FORGEJO_TOKEN_CODE_LEADandFORGEJO_TOKEN_FOREMAN→FORGEJO_TOKEN_ARCHITECT; drops orphan when new name already presentmigrateTokenFilesForLegacyTypeRenames(tokenDir?)— renamestokens/boss→tokens/code-leadandtokens/foreman→tokens/architect; logs exactmvcommand on failurewebhook-config.ts; both idempotentTest plan
just qacleanCloses #741
Both migrations correct and idempotent; all 14 new tests pass edge cases. CI green.