Skip to content

Commit

Permalink
Use release title template only for release name, not for the tag. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Nov 10, 2020
1 parent 5fefad7 commit d88caf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/webhooks/github/actions/release_drafter.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ func (r *releaseDrafter) draft(ctx context.Context, p *releaseDrafterParams) err
if err != nil {
return err
}
releaseTag = fmt.Sprintf(r.titleTemplate, releaseTag)
}

var priorBody string
Expand All @@ -148,7 +147,7 @@ func (r *releaseDrafter) draft(ctx context.Context, p *releaseDrafterParams) err
} else {
newDraft := &github.RepositoryRelease{
TagName: v3.String(releaseTag),
Name: v3.String(releaseTag),
Name: v3.String(fmt.Sprintf(r.titleTemplate, releaseTag)),
Body: &body,
Draft: v3.Bool(true),
}
Expand Down

0 comments on commit d88caf2

Please sign in to comment.