   message = commit.join " "
   if match = message.match /^([^\(]+)\(([\w\.]+)\):\s+(.+)/
     commitObj.type =
-      if match[1] in ["fix", "feature"] then match[1] else "breaking"
+      if match[1] in ["fix", "feature", "refactor"] then match[1] else "breaking"
 
     commitObj.component = match[2]
     commitObj.message   = match[3]


writeChangeLog = (stream, commits, version) ->
  sections =
    fix:    {}
    feature: {}
    breaking: {}

  for commit in commits


GIT_LOG = "git log --grep='%s' -E --format=%s %s..HEAD"
GIT_TAG = "git describe --tags --abbrev=0"
GIT_GREP = "^fix|^feature|^refactor|BREAKING"

githubUrl = "https://github.com/StartTheShift/MacGyver"

