Skip to content

Commit

Permalink
cmd/release-notes: check presence of RepositoryCommit author
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik committed Feb 9, 2023
1 parent 0d5688a commit 4793b5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/release-notes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ var tpl = template.Must(template.New("").Funcs(template.FuncMap{"split": split})
[Full changelog](https://github.com/stateful/runme/compare/v{{ or .PreviousVersion "main" }}...v{{ .Version }})
{{ range $value := .Commits -}}
* {{ $value.SHA }}: {{ (split "\n" $value.Commit.Message)._0 }} ([@{{ $value.Author.Login }}]({{ $value.Author.HTMLURL }}))
* {{ $value.SHA }}: {{ (split "\n" $value.Commit.Message)._0 }}
{{- if $value.Author }} ([@{{ $value.Author.Login }}]({{ $value.Author.HTMLURL }}))
{{- else if $value.Commit.Author }} ({{ $value.Commit.Author.Name }}){{ end }}
{{ end }}
`))

Expand Down

0 comments on commit 4793b5b

Please sign in to comment.