Skip to content

Commit 1af9673

Browse files
authored
feat: add support for including the type
1 parent e8f0f12 commit 1af9673

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/types/code_block.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ func renderCodeBlockActionInputs(inputs map[string]ActionInput, repository, tag
164164

165165
for _, key := range keys {
166166
codeBlock.WriteString(fmt.Sprintf(" # %s\n", utils.WordWrap(inputs[key].Description, 9, "\n # ")))
167+
if inputs[key].Default == "false" || inputs[key].Default == "true" {
168+
codeBlock.WriteString(fmt.Sprintf(" # Type: boolean\n"))
169+
} else {
170+
codeBlock.WriteString(fmt.Sprintf(" # Type: string\n"))
171+
}
167172
if inputs[key].Default != "" {
168173
codeBlock.WriteString(fmt.Sprintf(" # Default: %s\n", utils.FormatValue(inputs[key].Default, false, "\n # ")))
169174
}

0 commit comments

Comments
 (0)