Skip to content

Releases

v0.4.1

Choose a tag to compare

@murpiano murpiano released this 01 Dec 10:15

Fixed

  • Ignore github merge commit messages
    Add 'Merge pull request ' to ignore.patterns so the push-triggered Kysaro CI check no longer fails on main after every PR merge.

Full diff: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@murpiano murpiano released this 04 Nov 11:34
708d3d7

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

Choose a tag to compare

@github-actions github-actions released this 01 Oct 09:13

Changed

  • The commit-msg hook 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 ci and kysaro --range still 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

Choose a tag to compare

@github-actions github-actions released this 30 Sep 18:59

Fixed

  • Default settings distributed by kysaro init now correctly use lowercase subject case (Conventional Commits standard).

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Sep 20:48

Breaking changes

  • Merge commits are checked by merge.json instead of being skipped. The default git message Merge branch 'x' is rejected. To skip merge commits as before, set ignore.kinds to ["merge", "revert"] in main.json.
  • merge.json and request.json use the commit.json format. Files in the old format fall back to the package defaults with a warning; run npx kysaro init --force to replace them.
  • kysaro init sets up everything at once; --settings is no longer needed.

Added

  • kysaro ci checks, 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 by merge.json; fixup!, squash! and amend! commits fail.
  • .kysaro/report.md with the problems, a suggested message and the commands to fix it after every check; the same report in the GitHub job summary.
  • kysaro init creates .github/workflows/kysaro.yml.
  • header.reference allows, requires or forbids the (#123) suffix that GitHub adds on merge and squash.
  • body.minLength; maxLineLength: 0 turns the line length check off.
  • createLinter() loads settings once for many checks; results report kind and rules.

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 29 Sep 20:48

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

Choose a tag to compare

@murpiano murpiano released this 30 Sep 04:56

First public release.

Added

  • kysaro <file> checks a commit message file from the commit-msg hook. Messages also come from -m <message> or stdin.
  • Exit codes: 0 for valid or ignored messages, 1 for invalid messages, 2 for wrong arguments or broken settings.
  • kysaro init installs the commit-msg hook into .husky or the git hooks directory.
  • kysaro init --settings copies the default settings into .kysaro/settings with $schema links 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: value and Token #value footers and multi-line footer values.
  • Cleanup before validation: comments, the git commit -v diff, extra blank lines and spaces around lines.
  • Merge commits, git revert messages and fixup!, 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, analyzer and generator stages.