# Heuristics used by VCLog itself.

type :major,    3, "Major Enhancements"
type :minor,    2, "Minor Enhancements"
type :bug,      1, "Bug Fixes"
type :fix,      1, "Bug Fixes"
type :update,   0, "Nominal Changes"
type :doc,     -1, "Documentation Changes"
type :test,    -1, "Test/Spec Adjustments"
type :admin,   -2, "Administrative Changes"
type :log,     -3, "Just a record"


on Regexp.union(/^(?<type> \w+):/, /^\[(?<type>\w+)\]/) do |commit, md|
  type = md[:type].to_sym
  commit.type    = type
  commit.message = commit.message.sub(md[0],'').strip
end

on /updated? (README\.md|PROFILE|PACKAGE|VERSION|Manifest\.txt)/ do |commit|
  commit.type = :admin
end

on /(bump|bumped|prepare) version/ do |commit|
  commit.type = :admin
end

colors :grey, :blue, :cyan, :green, :yellow, :red, [:red, :bold]


#  vim: set ft=ruby ts=2 sw=2 tw=78 fmr=[[[,]]] fdm=syntax :