Skip to content

Navigation Menu

Sign up
trans edited this page Dec 12, 2011 · 4 revisions

You can define your own custom heuristics by create a .confile or Confile in your project's root directory and adding a vclog section to it.

An example entry might look something like:

vclog do
 type :major, 1, "Major Enhancements"
 type :bug, 0, "Bug Fixes"
 type :minor, -1, "Minor Enhancements"
 type :admin, -2, "Administrative Changes"
 on /^generate:/ do |commit|
 commit.type = :minor
 end
 on /^admin:/ do |commit|
 commit.type = :admin
 end
 on /^minor:/ do |commit|
 commit.type = :minor
 end
 on /^major:/ do |commit|
 commit.type = :major
 end
 on /updated? (README|PROFILE|PACKAGE|VERSION|MANIFEST)/ do
 commit.type = :admin
 end
 on /bump(ed)? version/ do
 commit.type = :admin
 end
 on /^(\w+):/ do |word|
 commit.type = word.to_sym
 commit.label = "#{word.capitalize} Changes"
 end
 on /\[(\w+)\]\s*$/ do |word|
 commit.type = word.to_sym
 commit.label = "#{word.capitalize} Changes"
 end
end

NOTE: As of this writing, this feature is brand spanking new, so the exact syntax may change a bit to accommodate additional features in the future.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /