Skip to content

Commit

Permalink
docs: fix default value property in data file
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Jan 3, 2024
1 parent 5776b9b commit c539d62
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion cmd/wp-git-clone/templates/docs-data.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
type: {{ . }}
{{- end }}
{{- with $v.Default }}
defaultvalue: {{ . }}
defaultValue: {{ . | toString }}
{{- end }}
required: {{ default false $v.Required }}
{{ end -}}
Expand Down
32 changes: 16 additions & 16 deletions docs/data/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ properties:
description: |
Change branch name.
type: string
defaultvalue: "main"
defaultValue: "main"
required: false

- name: commit_ref
description: |
Git commit ref.
type: string
defaultvalue: "refs/heads/main"
defaultValue: "refs/heads/main"
required: false

- name: commit_sha
description: |
Git commit sha.
type: string
defaultvalue: $CI_COMMIT_SHA
defaultValue: $CI_COMMIT_SHA
required: false

- name: depth
description: |
Clone depth.
type: integer
defaultvalue: 0
defaultValue: 0
required: false

- name: insecure_skip_ssl_verify
Expand All @@ -34,49 +34,49 @@ properties:
Activating this option is insecure and should be avoided in most cases.
type: bool
defaultvalue: false
defaultValue: false
required: false

- name: lfs
description: |
Whether to retrieve LFS content if available.
type: bool
defaultvalue: true
defaultValue: true
required: false

- name: partial
description: |
Enable/disable partial clone.
type: bool
defaultvalue: false
defaultValue: false
required: false

- name: recursive
description: |
Clone submodules.
type: bool
defaultvalue: true
defaultValue: true
required: false

- name: remote
description: |
Git remote HTTP clone url.
type: string
defaultvalue: $CI_REPO_CLONE_URL
defaultValue: $CI_REPO_CLONE_URL
required: false

- name: remote_ssh
description: |
Git remote SSH clone url.
type: string
defaultvalue: $CI_REPO_CLONE_SSH_URL
defaultValue: $CI_REPO_CLONE_SSH_URL
required: false

- name: safe_directory
description: |
Define/replace safe directories.
type: string
defaultvalue: $CI_WORKSPACE
defaultValue: $CI_WORKSPACE
required: false

- name: ssh_key
Expand All @@ -95,33 +95,33 @@ properties:
description: |
Update submodules via partial clone (`depth=1`).
type: bool
defaultvalue: true
defaultValue: true
required: false

- name: submodules_update_remote
description: |
Update remote submodules.
type: bool
defaultvalue: false
defaultValue: false
required: false

- name: tags
description: |
Fetch git tags during clone.
type: bool
defaultvalue: true
defaultValue: true
required: false

- name: use_ssh
description: |
Using SSH for git clone.
type: bool
defaultvalue: false
defaultValue: false
required: false

- name: workdir
description: |
Path to clone git repository.
type: string
defaultvalue: $CI_WORKSPACE
defaultValue: $CI_WORKSPACE
required: false

0 comments on commit c539d62

Please sign in to comment.