Skip to content

Commit

Permalink
prepare changelog, add beta to template, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed May 9, 2022
1 parent 9ef68fd commit e7a3d0c
Show file tree
Hide file tree
Showing 28 changed files with 11 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 10 additions & 5 deletions changelog/CHANGELOG.tmpl
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{{ $allVersions := . }}
{{- range $index, $changes := . }}{{ with $changes -}}
{{ $version := .Version -}}
{{/* ocis beta program */ -}}
{{ if eq .Version "2.0.0" -}}
{{ $version = (printf "%v-%v" $version "beta1") -}}
{{ end -}}
{{ if gt (len $allVersions) 1 -}}
# Changelog for [{{ .Version }}] ({{ .Date }})
# Changelog for [{{ $version }}] ({{ .Date }})

The following sections list the changes for {{ .Version }}.
The following sections list the changes for {{ $version }}.

{{/* creating version compare links */ -}}
{{ $next := add1 $index -}}
{{ if ne (len $allVersions) $next -}}
{{ $previousVersion := (index $allVersions $next).Version -}}
{{ if eq .Version "unreleased" -}}
[{{ .Version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...master
[{{ $version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...master

{{ else -}}
[{{ .Version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...v{{ .Version }}
[{{ $version }}]: https://github.com/owncloud/ocis/compare/v{{ $previousVersion }}...v{{ $version }}

{{ end -}}
{{ end -}}
Expand All @@ -24,7 +29,7 @@ The following sections list the changes for {{ .Version }}.

{{ end -}}
{{ else -}}
# Changes in {{ .Version }}
# Changes in {{ $version }}

{{ end -}}

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sonar.projectKey=owncloud_ocis
sonar.organization=owncloud-1
sonar.projectName=ocis
sonar.projectVersion=1.20.0
sonar.projectVersion=2.0.0-beta1
sonar.host.url=https://sonarcloud.io

# =====================================================
Expand Down

0 comments on commit e7a3d0c

Please sign in to comment.