0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-11-09 17:30:39 +00:00

use tag as title if not user provided fixes #26

This commit is contained in:
Philipp 2021-06-07 08:31:25 +02:00 committed by GitHub
parent acd080b23a
commit a3bc2214f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {