Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lower-case name for changelog directory #1025

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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