Skip to content

Commit 2087ad8

Browse files
authored
Merge pull request #28 from pheelee/master
use tag as title if not user provided fixes #26
2 parents acd080b + a3bc221 commit 2087ad8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ func (p Plugin) Exec() error {
137137
Note: p.Config.Note,
138138
}
139139

140+
// if the title was not provided via .drone.yml we use the tag instead
141+
// fixes https://github.com/drone-plugins/drone-gitea-release/issues/26
142+
if rc.Title == "" {
143+
rc.Title = rc.Tag
144+
}
145+
140146
release, err := rc.buildRelease()
141147

142148
if err != nil {

0 commit comments

Comments
 (0)