Skip to content

Commit

Permalink
Use lower-case name for changelog directory (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 authored Jul 29, 2020
1 parent 99db7c1 commit ab9132a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/prepare-release-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Use lower-case name for changelog directory

When preparing a new release, the changelog entries need to be copied to the
changelog folder under docs. In a previous change, all these folders were made
to have lower case names, resulting in creation of a separate folder.

https://github.com/cs3org/reva/pull/1025
8 changes: 4 additions & 4 deletions tools/prepare-release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func main() {
run(cmd)

// Generate changelog also in the documentation
if err := os.MkdirAll(fmt.Sprintf("docs/content/en/docs/Changelog/%s", *version), 0755); err != nil {
fmt.Fprintf(os.Stderr, "error creating docs/content/en/docs/Changelog/%s: %s", *version, err)
if err := os.MkdirAll(fmt.Sprintf("docs/content/en/docs/changelog/%s", *version), 0755); err != nil {
fmt.Fprintf(os.Stderr, "error creating docs/content/en/docs/changelog/%s: %s", *version, err)
os.Exit(1)
}

Expand All @@ -136,7 +136,7 @@ description: >
`, *version, *version, *version, date)

releaseDocs += string(data)
if err := ioutil.WriteFile(fmt.Sprintf("docs/content/en/docs/Changelog/%s/_index.md", *version), []byte(releaseDocs), 0644); err != nil {
if err := ioutil.WriteFile(fmt.Sprintf("docs/content/en/docs/changelog/%s/_index.md", *version), []byte(releaseDocs), 0644); err != nil {
fmt.Fprintf(os.Stderr, "error writing docs release file _index.md: %s", err)
os.Exit(1)
}
Expand All @@ -146,7 +146,7 @@ description: >
"CHANGELOG.md",
"VERSION",
"RELEASE_DATE",
"docs/content/en/docs/Changelog",
"docs/content/en/docs/changelog",
)

if *commit {
Expand Down

0 comments on commit ab9132a

Please sign in to comment.