mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 22:15:31 +00:00
feat: Add semantic versioning compatibility (#47)
* feat: Use regex groups * feat: Add semver input * deps: Add semver v7.3.7 * deps(Dev): Add @types/semver v7.3.9 * feat: Add prerelease output * chore: Update action directory * feat: Log prerelease value * ci(GitHub): Update release workflow * docs: Update README.md * feat: Add ability to detect previous version based on semver comparison * ci(GitHub): fix test workflow
This commit is contained in:
1 parent
de993f2bea
commit
bd78d66436
16 files changed
+226
-53
No files matched your search
+2
-1
@@ -21,7 +21,8 @@ export async function generate(input: ChangelogInputI): Promise<string> {
|
||||
|
||||
const message = commit.commit.message.split("\n")[0];
|
||||
|
||||
let [, type, category, title, flag] = COMMIT_REGEX.exec(message) || [];
|
||||
let { type, category, title, flag } =
|
||||
COMMIT_REGEX.exec(message)?.groups ?? {};
|
||||
|
||||
if (!title) continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user