Skip to content

Commit

Permalink
Add changelog generated by calens
Browse files Browse the repository at this point in the history
Closes #44
  • Loading branch information
fd0 committed Mar 24, 2018
1 parent 4d24933 commit 897d5a0
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ install:
- export PATH="$PATH:$GOBIN"
- go get -u github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/goimports
- go get github.com/restic/calens

script:
- go install
- go test -v . ./cmd/rest-server
- go run build.go -v -T
- diff <(goimports -d *.go) <(printf "")
- calens

after_success:
- diff <(golint *.go) <(printf "")
3 changes: 3 additions & 0 deletions changelog/0.9.7_2018-02-18/issue-53
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Rename --cpuprofile to --cpu-profile

https://github.com/restic/rest-server/issues/53
31 changes: 31 additions & 0 deletions changelog/CHANGELOG-GitHub.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- range $changes := . }}{{ with $changes -}}
Changelog for rest-server {{ .Version }} ({{ .Date }})
=========================================

The following sections list the changes in rest-server {{ .Version }} relevant to users. The changes are ordered by importance.

Summary
-------
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .TypeShort }} [#{{ .PrimaryID }}]({{ .PrimaryURL }}): {{ .Title }}
{{- end }}{{ end }}

Details
-------
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
{{ range $par := .Paragraphs }}
{{ $par }}
{{ end }}
{{ range $id := .Issues -}}
{{ ` ` }}[#{{ $id }}](https://github.com/restic/rest-server/issues/{{ $id -}})
{{- end -}}
{{ range $id := .PRs -}}
{{ ` ` }}[#{{ $id }}](https://github.com/restic/rest-server/pull/{{ $id -}})
{{- end -}}
{{ ` ` }}{{ range $url := .OtherURLs -}}
{{ $url -}}
{{- end }}
{{ end }}{{ end }}

{{ end }}{{ end -}}
32 changes: 32 additions & 0 deletions changelog/CHANGELOG.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{- range $changes := . }}{{ with $changes -}}
Changelog for rest-server {{ .Version }} ({{ .Date }})
============================================

The following sections list the changes in rest-server {{ .Version }} relevant
to users. The changes are ordered by importance.

Summary
-------
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .TypeShort }} #{{ .PrimaryID }}: {{ .Title }}
{{- end }}{{ end }}

Details
-------
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
{{ range $par := .Paragraphs }}
{{ wrap $par 80 3 }}
{{ end -}}
{{ range $id := .Issues }}
https://github.com/restic/restic/issues/{{ $id -}}
{{ end -}}
{{ range $id := .PRs }}
https://github.com/restic/restic/pull/{{ $id -}}
{{ end -}}
{{ range $url := .OtherURLs }}
{{ $url -}}
{{ end }}
{{ end }}{{ end }}

{{ end }}{{ end -}}
12 changes: 12 additions & 0 deletions changelog/TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bugfix: Fix behavior for foobar (in present tense)

We've fixed the behavior for foobar, a long-standing annoyance for rest-server
users.

The text in the paragraphs is written in past tense. The last section is a list
of issue URLs, PR URLs and other URLs. The first issue ID (or the first PR ID,
in case there aren't any issue links) is used as the primary ID.

https://github.com/restic/restic/issues/1234
https://github.com/restic/restic/pull/55555
https://forum.restic/.net/foo/bar/baz
3 changes: 3 additions & 0 deletions changelog/unreleased/issue-44
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Add changelog file

https://github.com/restic/rest-server/issues/44
8 changes: 8 additions & 0 deletions changelog/unreleased/issue-60
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Security: Require auth by default, add --no-auth flag

In order to prevent users from accidentally exposing rest-server without
authentication, rest-server now defaults to requiring a .htpasswd. If you want
to disable authentication, you need to explicitly pass the new --no-auth flag.

https://github.com/restic/rest-server/issues/60
https://github.com/restic/rest-server/pull/61

0 comments on commit 897d5a0

Please sign in to comment.