-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreleases.go
41 lines (38 loc) · 1.4 KB
/
releases.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package project
import (
"github.com/monax/relic/v2"
)
var History relic.ImmutableHistory = relic.NewHistory("Relic", "https://github.com/monax/relic").
MustDeclareReleases("",
``,
"2.1.0 - 2019-03-25",
`### Changed
- Make into Go module at version 2
`,
"2.0.0 - 2018-08-15",
`### Changed
- Versions must start from 0.0.1 (0.0.0 is reserved for unreleased)
- Default changelog format follows https://keepachangelog.com/en/1.0.0/
- NewHistory takes second parameter for project URL
- Dropped getters from Version since already passed by value so immutable
### Added
- Optional top (most recent) release may be provided with empty Version with (via empty string in DeclareReleases) whereby its notes will be listed under 'Unreleased'
- Optional date can be appended to version using the exact format <major.minor.patch - YYYY-MM-DD> e.g. '5.4.2 - 2018-08-14'
- Default changelog format footnote references standard github compare links to see commits between version tags
`,
"1.1.0",
`Add ImmutableHistory and tweak suggested usage docs`,
"1.0.1",
`Documentation fixes and typos`,
"1.0.0",
`Minor improvements:
- Rename DeclareReleases to DeclareReleases (breaking API change)
- Add sample snippet to readme
- Sign version tags
`,
"0.0.1",
`First release of Relic extracted from various initial projects, it can:
- Generate changelogs
- Print the current version
- Ensure valid semantic version numbers
`)