From 665dcf67abbe02062eaf81255d53183aa5b61775 Mon Sep 17 00:00:00 2001 From: thegeeklab-bot Date: Wed, 8 Feb 2023 15:26:16 +0000 Subject: [PATCH] auto-update documentation --- data/data.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/data.yaml b/data/data.yaml index 20a710e..8e47ff7 100644 --- a/data/data.yaml +++ b/data/data.yaml @@ -32,7 +32,9 @@ properties: required: false - name: template - description: Golang template for the messages. - defaultValue: build {{ build.status }} [{{ repo.owner }}/{{ repo.name }}#{{ truncate build.commit 8 }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }} + description: | + Golang template for the message. The [pipeline struct](https://pkg.go.dev/github.com/thegeeklab/drone-plugin-lib/v2/drone#Pipeline) + is exposed to the template and all fields can be referenced. To extend the functionality, [sprig functions](https://masterminds.github.io/sprig/) can also be used. + defaultValue: "Build {{ .Build.Status }} [{{ .Repo.Owner }}/{{ .Repo.Name }}#{{ trunc 8 .Commit.SHA }}]({{ .Build.Link }}) ({{ .Build.Branch }}) by {{ .Commit.Author }}" type: string required: false