Merge pull request #2398 from ZhenShuo2021/fix/repo-card-dollar

🐛 Fix(repo-card): add missing dollar sign
This commit is contained in:
Nuno C.
2025-08-03 01:49:16 +01:00
committed by GitHub
5 changed files with 10 additions and 10 deletions

View File

@@ -4,11 +4,11 @@
{{- $codebergData := dict -}}
{{- with try (resources.GetRemote $codebergURL) -}}
{{- with .Err -}}
{{- warnf "codeberg shortcode: failed to fetch remote resource from %q: %s" $codebergURL .Position -}}
{{- warnf "codeberg shortcode: failed to fetch remote resource from %q: %s" $codebergURL $.Position -}}
{{- else with .Value -}}
{{- $codebergData = . | transform.Unmarshal -}}
{{- else -}}
{{- warnf "codeberg shortcode: unable to get remote resource from %q: %s" $codebergURL .Position -}}
{{- warnf "codeberg shortcode: unable to get remote resource from %q: %s" $codebergURL $.Position -}}
{{- end -}}
{{- end -}}

View File

@@ -4,11 +4,11 @@
{{- $forgejoData := dict -}}
{{- with try (resources.GetRemote $forgejoURL) -}}
{{- with .Err -}}
{{- warnf "forgejo shortcode: failed to fetch remote resource from %q: %s" $forgejoURL .Position -}}
{{- warnf "forgejo shortcode: failed to fetch remote resource from %q: %s" $forgejoURL $.Position -}}
{{- else with .Value -}}
{{- $forgejoData = . | transform.Unmarshal -}}
{{- else -}}
{{- warnf "forgejo shortcode: unable to get remote resource from %q: %s" $forgejoURL .Position -}}
{{- warnf "forgejo shortcode: unable to get remote resource from %q: %s" $forgejoURL $.Position -}}
{{- end -}}
{{- end -}}

View File

@@ -4,11 +4,11 @@
{{- $giteaData := dict -}}
{{- with try (resources.GetRemote $giteaURL) -}}
{{- with .Err -}}
{{- warnf "gitea shortcode: failed to fetch remote resource from %q: %s" $giteaURL .Position -}}
{{- warnf "gitea shortcode: failed to fetch remote resource from %q: %s" $giteaURL $.Position -}}
{{- else with .Value -}}
{{- $giteaData = . | transform.Unmarshal -}}
{{- else -}}
{{- warnf "gitea shortcode: unable to get remote resource from %q: %s" $giteaURL .Position -}}
{{- warnf "gitea shortcode: unable to get remote resource from %q: %s" $giteaURL $.Position -}}
{{- end -}}
{{- end -}}

View File

@@ -6,11 +6,11 @@
{{- $githubData := dict -}}
{{- with try (resources.GetRemote $githubURL) -}}
{{- with .Err -}}
{{- warnf "github shortcode: failed to fetch remote resource from %q: %s" $githubURL .Position -}}
{{- warnf "github shortcode: failed to fetch remote resource from %q: %s" $githubURL $.Position -}}
{{- else with .Value -}}
{{- $githubData = . | transform.Unmarshal -}}
{{- else -}}
{{- warnf "github shortcode: unable to get remote resource from %q: %s" $githubURL .Position -}}
{{- warnf "github shortcode: unable to get remote resource from %q: %s" $githubURL $.Position -}}
{{- end -}}
{{- end -}}

View File

@@ -3,11 +3,11 @@
{{- $gitLabData := dict -}}
{{- with try (resources.GetRemote $gitlabURL) -}}
{{- with .Err -}}
{{- warnf "gitlab shortcode: failed to fetch remote resource from %q: %s" $gitlabURL .Position -}}
{{- warnf "gitlab shortcode: failed to fetch remote resource from %q: %s" $gitlabURL $.Position -}}
{{- else with .Value -}}
{{- $gitLabData = . | transform.Unmarshal -}}
{{- else -}}
{{- warnf "gitlab shortcode: unable to get remote resource from %q: %s" $gitlabURL .Position -}}
{{- warnf "gitlab shortcode: unable to get remote resource from %q: %s" $gitlabURL $.Position -}}
{{- end -}}
{{- end -}}