Skip to content

Treat a reverted subject convention identifier as reverted - #153

Open
poojagosika wants to merge 1 commit into
linear:mainfrom
poojagosika:fix/revert-subject-conventions
Open

poojagosika wants to merge 1 commit into
linear:mainfrom
poojagosika:fix/revert-subject-conventions

Conversation

@poojagosika

Copy link
Copy Markdown

Fixes #152

The revert path only checked magic words, so reverting a [ENG-5] ..., (ENG-5) ... or ENG-5: ... commit left ENG-5 in the release. It now checks the same subject conventions as the add path, and a revert of a revert re-adds the issue from the unwrapped title.

The old ignores identifier in unwrapped message without magic word test (from before #81) now uses an identifier in the middle of the subject, which is still ignored.

Verified: new tests in extractors.test.ts and scan.test.ts fail on main and pass with this change; vitest --run (478), tsc --noEmit, oxlint and oxfmt --check pass

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.

A revert of a [ENG-123] / ENG-123: subject commit does not remove the issue from the release

1 participant