Skip to content

Release 0.9.0

Compare
Choose a tag to compare
@tombruijn tombruijn released this 07 Aug 13:04
· 60 commits to main since this release
8d8e25c

Added

  • Update the SubjectTicketNumber and MessageTicketNumber rules to also match
    full URLs to issues, and match shorthands like #123 and org/repo#123 more
    accurately.
  • The MessagePresence rule checks if the commit message is only a reference to
    a ticket or issue number, e.g. a message that is only "Closes #123" is no
    longer valid. Some detail about the issue should also be recorded in the
    commit message itself, not just the linked issue.
  • Add the DiffChangeset rule, which checks for the presence of a
    changeset file when the repository has a .changeset or .changesets
    directory. If found, it will give a hint to add a changeset to the commit.
    Learn more about changesets.

Changed

  • Update the MessageTicketNumber rule to also recognize issue keywords like
    "part of issue", "part of epic" and "part of project".
  • Improve error messages from Lintje. When Lintje is run in a directory that's
    not a Git repository it will now print a more to the point message with less
    detail. The detailed error message including which command was run with which
    arguments is available behind the --debug flag.
  • Improve MessagePresence rule error message to more concise.
  • Don't count line breaks towards the minimum MessagePresence character count.
  • Show the whole message body as context in MessagePresence issues that are
    about message bodies that are too short. Since they are so short Lintje can
    print it in full. Previously it only showed the last line which did not
    provide enough context in some cases.
  • Don't count references to issues and ticket numbers towards the minimum
    message body length in the MessagePresence rule, like "Closes #123".
  • Don't count co-authored-by lines towards the minimum
    message body length in the MessagePresence rule, like
    "Co-authored-by: name email@domain.com".