From a3bc2214f7db55ac4ff18ad46a5f565dc0ee3cbd Mon Sep 17 00:00:00 2001 From: Philipp <2619327+pheelee@users.noreply.github.com> Date: Mon, 7 Jun 2021 08:31:25 +0200 Subject: [PATCH] use tag as title if not user provided fixes #26 --- plugin.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin.go b/plugin.go index 734cb0c..205cd26 100644 --- a/plugin.go +++ b/plugin.go @@ -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 {