Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-yurchenko committed Jul 9, 2023
1 parent 40a2625 commit ac5d651
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Changelog

## [1.0.5] - 2023-07-18
## [1.1.0] - 2023-07-09

### Added

- Titles line breakers

### Changed

- Update dependencies

### Fixed

- Null pointer exception upon `CreateReleaseFromUnreleased` / `CreateReleaseFromUnreleasedWithURL` call with an empty `Unreleased` section

## [1.0.5] - 2023-06-18

### Changed

Expand Down Expand Up @@ -60,6 +74,7 @@

_Initial release_

[1.1.0]: https://github.com/anton-yurchenko/go-changelog/compare/v1.0.5...v1.1.0
[1.0.5]: https://github.com/anton-yurchenko/go-changelog/compare/v1.0.4...v1.0.5
[1.0.4]: https://github.com/anton-yurchenko/go-changelog/compare/v1.0.3...v1.0.4
[1.0.3]: https://github.com/anton-yurchenko/go-changelog/compare/v1.0.2...v1.0.3
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ package main

import (
changelog "github.com/anton-yurchenko/go-changelog"
"github.com/spf13/afero"
)

func main() {
Expand All @@ -37,7 +38,7 @@ func main() {
c.AddUnreleasedChange("fixed", []string{"Bug"})
c.AddUnreleasedChange("added", []string{"Feature"})

r, err := c.CreateReleaseFromUnreleased("1.0.0", "https://github.com/anton-yurchenko/go-changelog/releases/tag/v1.0.0", "2021-05-31")
r, err := c.CreateReleaseFromUnreleasedWithURL("1.0.0", "2021-05-31","https://github.com/anton-yurchenko/go-changelog/releases/tag/v1.0.0")
if err != nil {
panic(err)
}
Expand All @@ -47,7 +48,7 @@ func main() {
}
r.AddNotice("**This release contains breaking changes**")

if err := c.SaveToFile("./CHANGELOG.md"); err != nil {
if err := c.SaveToFile(afero.NewOsFs(), "./CHANGELOG.md"); err != nil {
panic(err)
}
}
Expand Down Expand Up @@ -87,6 +88,7 @@ package main

import (
changelog "github.com/anton-yurchenko/go-changelog"
"github.com/spf13/afero"
)

func main() {
Expand All @@ -107,7 +109,7 @@ func main() {

r.Yanked = true

c.SaveToFile("./CHANGELOG.md")
c.SaveToFile(afero.NewOsFs(), "./CHANGELOG.md")
if err != nil {
panic(err)
}
Expand All @@ -120,6 +122,7 @@ func main() {

- Releases are sorted by their [Semantic Version](https://semver.org/)
- Scopes are sorted by their importance
- `SaveToFile` will overwrite the existing file, and anything that does not match the changelog format will be omitted

## License

Expand Down

0 comments on commit ac5d651

Please sign in to comment.