Skip to content

fix: match archived changes by exact slug#4

Merged
devcxl merged 1 commit into
devcxl:masterfrom
fengjikui:codex/archived-change-exact-match
Jul 14, 2026
Merged

fix: match archived changes by exact slug#4
devcxl merged 1 commit into
devcxl:masterfrom
fengjikui:codex/archived-change-exact-match

Conversation

@fengjikui

Copy link
Copy Markdown
Contributor

Summary

  • avoid resolving archived changes by suffix-only directory matches
  • keep legacy non-dated archive names supported via exact slug matches
  • add regression coverage for user-auth not matching 2026-01-01-add-user-auth

Root cause

Archived lookup accepted any archive directory whose name ended with -${slug}. That means a lookup for user-auth could incorrectly match an unrelated archived change such as 2026-01-01-add-user-auth, because the directory has the same suffix.

Validation

  • npm test -- --run test/reference-scripts.test.ts
  • npm test
  • npm run typecheck
  • npm run build
  • git diff --check

@devcxl
devcxl merged commit 182cd49 into devcxl:master Jul 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants