File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
7
## [ Unreleased]
8
- ### Added
8
+ ## [ 0.0.1] - 2017-08-12
9
+ ### Added
9
10
- This CHANGELOG file!
10
11
12
+ ### Changed
13
+ - ProjectPath to ProjectURL in ` init ` to allow for non github hosts
11
14
12
- [ Unreleased] : https://github.com/nicwest/kacl/compare/TAIL...HEAD
15
+ ### Fixed
16
+ - additional new lines being added when documenting a new release
17
+
18
+
19
+ [ Unreleased ] : https://github.com/nicwest/kacl/compare/0.0.1...HEAD
20
+ [ 0.0.1 ] : https://github.com/nicwest/kacl/compare/TAIL...0.0.1
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ import (
11
11
)
12
12
13
13
type initCmdConfig struct {
14
- ProjectPath string
15
- InitialTag string
14
+ ProjectURL string
15
+ InitialTag string
16
16
}
17
17
18
+ // V1Template is the default keep a change log v1.0.0 template
18
19
const V1Template string = `# Changelog
19
20
All notable changes to this project will be documented in this file.
20
21
@@ -26,7 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
26
27
- This CHANGELOG file!
27
28
28
29
29
- [Unreleased]: https://github.com/ {{ .ProjectPath }}/compare/{{ .InitialTag }}...HEAD `
30
+ [Unreleased]: {{ .ProjectURL }}/compare/{{ .InitialTag }}...HEAD `
30
31
31
32
// initCmd represents the init command
32
33
var initCmd = & cobra.Command {
@@ -47,7 +48,7 @@ http://keepachangelog.com/en/1.0.0/ format.`,
47
48
48
49
var cfg initCmdConfig
49
50
50
- prompt .For ("Project path " , & cfg .ProjectPath )
51
+ prompt .For ("Project URL " , & cfg .ProjectURL )
51
52
prompt .ForWithDefault ("Initial commit" , "0.0.1" , & cfg .InitialTag )
52
53
53
54
t := template .Must (template .New ("version" ).Parse (V1Template ))
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ a new change with the given tag.`,
37
37
changes .WriteTo (rest )
38
38
rest .WriteString ("\n " )
39
39
rest .WriteString (contents .Rest )
40
- rest .WriteString ("\n " )
41
40
contents .Rest = rest .String ()
42
41
43
42
if len (contents .Refs ) > 0 {
You can’t perform that action at this time.
0 commit comments