chore: Files removed or no specific files modified.
This commit is contained in:
parent
aba766db8f
commit
552a1e49d1
@ -8,8 +8,6 @@ encryption = "age"
|
|||||||
{{- if eq .chezmoi.os "linux" }}
|
{{- if eq .chezmoi.os "linux" }}
|
||||||
{{- if (.chezmoi.kernel.osrelease | lower | contains "arch") }}
|
{{- if (.chezmoi.kernel.osrelease | lower | contains "arch") }}
|
||||||
distro = "arch"
|
distro = "arch"
|
||||||
{{- else if (.chezmoi.kernel.osrelease | lower | contains "debian") }}
|
|
||||||
distro = "debian"
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
@ -35,30 +33,35 @@ encryption = "age"
|
|||||||
autoCommit = true
|
autoCommit = true
|
||||||
autoPush = true
|
autoPush = true
|
||||||
commitMessageTemplate = """\
|
commitMessageTemplate = """\
|
||||||
|
{{ "{{-" }} $files := index . "files" {{ "}}" }}
|
||||||
|
{{ "{{-" }} if not (and $files (gt (len $files) 0)) {{ "}}" }}
|
||||||
|
chore: Files removed or no specific files modified.
|
||||||
|
{{ "{{-" }} else {{ "}}" }}
|
||||||
{{ "{{-" }} $path := list {{ "}}" }}
|
{{ "{{-" }} $path := list {{ "}}" }}
|
||||||
{{ "{{-" }} range .files {{ "}}" }}
|
{{ "{{-" }} range $files {{ "}}" }}
|
||||||
{{ "{{-" }} $path = append $path .path {{ "}}" }}
|
{{ "{{-" }} $path = append $path .path {{ "}}" }}
|
||||||
{{ "{{-" }} end {{ "-}}" }}
|
{{ "{{-" }} end {{ "-}}" }}
|
||||||
{{ "{{-" }} $firstFile := index $path 0 {{ "-}}" }}
|
{{ "{{-" }} $firstFile := index $path 0 {{ "-}}" }}
|
||||||
{{ "{{-" }} $dir := dir $firstFile {{ "-}}" }}
|
{{ "{{-" }} $dir := dir $firstFile {{ "-}}" }}
|
||||||
|
|
||||||
{{ "{{-" }} if contains "encrypted_" $firstFile {{ "-}}" }}
|
{{ "{{-" }} if contains "encrypted_" $firstFile {{ "-}}" }}
|
||||||
security(secret): {{ "{{" }} if eq (len .files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple encrypted files{{ "{{" }} end {{ "}}" }}
|
security(secret): {{ "{{" }} if eq (len $files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple encrypted files{{ "{{" }} end {{ "}}" }}
|
||||||
{{ "{{-" }} else if contains "scripts/" $firstFile {{ "-}}" }}
|
{{ "{{-" }} else if contains "scripts/" $firstFile {{ "-}}" }}
|
||||||
script({{ "{{" }} $dir {{ "}}" }}): {{ "{{" }} if eq (len .files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple script files{{ "{{" }} end {{ "}}" }}
|
script({{ "{{" }} $dir {{ "}}" }}): {{ "{{" }} if eq (len $files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple script files{{ "{{" }} end {{ "}}" }}
|
||||||
{{ "{{-" }} else if contains "exact_" $firstFile {{ "-}}" }}
|
{{ "{{-" }} else if contains "exact_" $firstFile {{ "-}}" }}
|
||||||
chore(external): {{ "{{" }} if eq (len .files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update external dependencies{{ "{{" }} end {{ "}}" }}
|
chore(external): {{ "{{" }} if eq (len $files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update external dependencies{{ "{{" }} end {{ "}}" }}
|
||||||
{{ "{{-" }} else {{ "-}}" }}
|
{{ "{{-" }} else {{ "-}}" }}
|
||||||
chore({{ "{{" }} $dir {{ "}}" }}): {{ "{{" }} if eq (len .files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple files{{ "{{" }} end {{ "}}" }}
|
chore({{ "{{" }} $dir {{ "}}" }}): {{ "{{" }} if eq (len $files) 1 {{ "}}" }}update {{ "{{" }} base $firstFile {{ "}}" }}{{ "{{" }} else {{ "}}" }}update multiple files{{ "{{" }} end {{ "}}" }}
|
||||||
{{ "{{-" }} end {{ "}}" }}
|
{{ "{{-" }} end {{ "}}" }}
|
||||||
|
|
||||||
{{ "{{-" }} if gt (len .files) 1 {{ "}}" }}
|
{{ "{{-" }} if gt (len $files) 1 {{ "}}" }}
|
||||||
|
|
||||||
Modified files:
|
Modified files:
|
||||||
{{ "{{-" }} range .files {{ "}}" }}
|
{{ "{{-" }} range $files {{ "}}" }}
|
||||||
{{ "- {{" }} .path {{ "}}" }}
|
{{ "- {{" }} .path {{ "}}" }}
|
||||||
{{ "{{-" }} end {{ "}}" }}
|
{{ "{{-" }} end {{ "}}" }}
|
||||||
{{ "{{-" }} end {{ "-}}" }}
|
{{ "{{-" }} end {{ "}}" }}
|
||||||
|
{{ "{{-" }} end {{ "}}" }}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[git.commit]
|
[git.commit]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user