Repository navigation
Releases
Releases · murpiano/kysaro
v0.4.1
v0.4.0
Added
- Reject pipeline stages that cannot run
main.json now fails validation when analyzer or fixer is enabled while validator is off, or when analyzer is enabled with neither correction nor semantic mode. The error points at the enabled property of the stage, so a broken setup is caught before the pipeline runs.
Full diff: v0.3.0...v0.4.0
v0.3.0
Changed
- The
commit-msghook prints two lines: the message is invalid, and the path of.kysaro/report.md. Every problem, the suggested message and the fix commands stay in the report.kysaro ciandkysaro --rangestill print every problem, because a log is all they have. - The report starts with the verdict, because it is often read as plain text, and points at the part of the header that has the problem with a
^^^line under it. The kind of the message, the settings file the rules came from and the name of the tool moved to the end. The check time and the count of checked messages are gone from a report of a single message.
v0.2.1
Fixed
- Default settings distributed by
kysaro initnow correctly use lowercase subject case (Conventional Commits standard).
v0.2.0
Breaking changes
- Merge commits are checked by
merge.jsoninstead of being skipped. The default git messageMerge branch 'x'is rejected. To skip merge commits as before, setignore.kindsto["merge", "revert"]inmain.json. merge.jsonandrequest.jsonuse thecommit.jsonformat. Files in the old format fall back to the package defaults with a warning; runnpx kysaro init --forceto replace them.kysaro initsets up everything at once;--settingsis no longer needed.
Added
kysaro cichecks, in GitHub Actions, the title, description and commits of every pull request and the commits of every push to any branch.kysaro --range <base>..<head>checks every commit of a range. Merge commits are checked bymerge.json;fixup!,squash!andamend!commits fail..kysaro/report.mdwith the problems, a suggested message and the commands to fix it after every check; the same report in the GitHub job summary.kysaro initcreates.github/workflows/kysaro.yml.header.referenceallows, requires or forbids the(#123)suffix that GitHub adds on merge and squash.body.minLength;maxLineLength: 0turns the line length check off.createLinter()loads settings once for many checks; results reportkindandrules.
v0.1.1
Changed
- Build provenance points to the current repository history. The history of 0.1.0 was rewritten after its release.
- The release workflow skips versions that are already on npm and releases that already exist.
- CI skips the commit message check after a force-push.
v0.1.0
First public release.
Added
kysaro <file>checks a commit message file from thecommit-msghook. Messages also come from-m <message>or stdin.- Exit codes:
0for valid or ignored messages,1for invalid messages,2for wrong arguments or broken settings. kysaro initinstalls thecommit-msghook into.huskyor the git hooks directory.kysaro init --settingscopies the default settings into.kysaro/settingswith$schemalinks for IDE autocomplete.- Rules for the header, type, scope, subject, body, footer and breaking change markers, configured in
commit.json. - Conventional Commits preset: types, footer tokens, 72-character lines, sentence case subject without a trailing period.
- Parser for
type(scope)!: subject,Token: valueandToken #valuefooters and multi-line footer values. - Cleanup before validation: comments, the
git commit -vdiff, extra blank lines and spaces around lines. - Merge commits,
git revertmessages andfixup!,squash!,amend!commits are skipped. - Suggested header for case and punctuation issues.
- Node.js API:
lint(),pipeline(),parseMessage()and TypeScript declarations. - JSON Schemas for every settings file.
Not included yet
- Pull request and merge commit rules (
request.json,merge.json). - The
fixer,analyzerandgeneratorstages.