-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #6 enables/demostrates markdown output
- adds sample gargamel config commented for both html and markdown output - adds sample templates for markdown output
- Loading branch information
Benedek Fazekas
committed
Jan 7, 2015
1 parent
f325840
commit 34bfc67
Showing
7 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{:sections | ||
;; defines sections in the changelog | ||
;; key: identifier for the section | ||
;; regex: to select changes for a section | ||
;; title: title for the section | ||
;; | ||
;; later section definition has precedence over previous ones | ||
[{:key :fixes :regex ".*#\\d+.*" :title "New features, bugfixes"} | ||
{:key :wip :regex ".*\\[[Ww][iI][pP]\\].*" :title "Work in progress, not yet ready"}] | ||
:linkable-objects | ||
;; defines custom transformations on text chunks, can be used for links in the changelog (commit hashes are turned into links automatically) | ||
;; template: the template fragment to use | ||
;; regex: to select bits of text to be transformed | ||
;; | ||
;; all selected text fragments are run through a format string with two arguments: | ||
;; first is org/user name second is project name. See the %1$s style place holders. | ||
;; for more info on format string see: http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html | ||
;; After that the regex groups are replaced | ||
[{:template "<a href=\"https://github.com/%1$s/%2$s/issues/$1\"> #$1</a>" :regex "#(\\d+)"} | ||
{:template "<a href=\"https://github.com/$2/issues/$3\">$2: $3</a>" :regex "(([_\\w/-]+)#(\\d+))"} | ||
{:template "<span style=\"color: red; font-weight: bold;\">$1</span>" :regex "(\\[refactor\\])"} | ||
{:template "<br/>" :regex "(\\n)"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{:sections | ||
;; defines sections in the changelog | ||
;; key: identifier for the section | ||
;; regex: to select changes for a section | ||
;; title: title for the section | ||
;; | ||
;; later section definition has precedence over previous ones | ||
[{:key :fixes :regex ".*#\\d+.*" :title "New features, bugfixes"} | ||
{:key :wip :regex ".*\\[[Ww][iI][pP]\\].*" :title "Work in progress, not yet ready"}] | ||
:linkable-objects | ||
;; defines custom transformations on text chunks, can be used for links in the changelog (commit hashes are turned into links automatically) | ||
;; template: the template fragment to use | ||
;; regex: to select bits of text to be transformed | ||
;; | ||
;; all selected text fragments are run through a format string with two arguments: | ||
;; first is org/user name second is project name. See the %1$s style place holders. | ||
;; for more info on format string see: http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html | ||
;; After that the regex groups are replaced | ||
[{:template "[#$1](https://github.com/%1$s/%2$s/issues/$1)" :regex "#(\\d+)"} | ||
{:template "[$2: $3](https://github.com/$2/issues/$3)" :regex "(([_\\w/-]+)#(\\d+))"} | ||
{:template "`$1`" :regex "(\\[refactor\\])"} | ||
{:template "$1 " :regex "(\\n)"}] | ||
:template-dir "md-templates" | ||
:output-extension ".md"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{^to-build-num}} | ||
# Changelog for [{{to}}]({{to-url}}) | ||
{{/to-build-num}} | ||
{{#to-build-num}} | ||
# Changelog for build [{{to-build-num}}]({{to-url}}) created at {{to-time}} | ||
|
||
VCS tag: {{to}} | ||
{{/to-build-num}} | ||
{{^from-build-num}} | ||
## Changes since [{{from}}]({{from-url}}) ([diff](compare-url)) | ||
{{/from-build-num}} | ||
{{#from-build-num}} | ||
## Changes since build [{{from-build-num}}]({{from-url}}) created at {{from-time}} ([diff]({{compare-url}})) | ||
VCS tag: {{from}} | ||
{{/from-build-num}} | ||
{{#sections}} | ||
|
||
### {{title}} | ||
{{#commits}} | ||
{{> commit}} | ||
{{/commits}} | ||
{{/sections}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* [{{hash}}]({{url}}) (*{{project-name}}*) {{date}} [{{commiter}}] **{{linked-subject}}** | ||
|
||
{{linked-body}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters