Skip to content

Commit

Permalink
Merge pull request #28 from pheelee/master
Browse files Browse the repository at this point in the history
use tag as title if not user provided fixes #26
  • Loading branch information
donny-dont committed Jun 15, 2021
2 parents acd080b + a3bc221 commit 2087ad8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ func (p Plugin) Exec() error {
Note: p.Config.Note,
}

// if the title was not provided via .drone.yml we use the tag instead
// fixes https://github.com/drone-plugins/drone-gitea-release/issues/26
if rc.Title == "" {
rc.Title = rc.Tag
}

release, err := rc.buildRelease()

if err != nil {
Expand Down

0 comments on commit 2087ad8

Please sign in to comment.