0
0
mirror of https://github.com/thegeeklab/woodpecker-plugins.git synced 2024-11-21 13:00:41 +00:00

add docs data template

This commit is contained in:
Robert Kaussow 2024-05-03 21:50:56 +02:00
parent 15b9a06016
commit b1ab575a3e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -0,0 +1,18 @@
---
{{- if .GlobalArgs }}
properties:
{{- range $v := .GlobalArgs }}
- name: {{ $v.Name }}
{{- with $v.Description }}
description: |
{{ . | ToSentence }}
{{- end }}
{{- with $v.Type }}
type: {{ . }}
{{- end }}
{{- with $v.Default }}
defaultValue: {{ . }}
{{- end }}
required: {{ default false $v.Required }}
{{ end -}}
{{ end -}}