Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Report an error when URLs are missing from an integrations registry entry #5107

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions layouts/shortcodes/ecosystem/integrations-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,32 @@
Name[^1] | OSS | Component | Learn more
------------ | --- | ---------- | ----------
{{- range sort (sort $integrations ".title") ".oss" "desc" }}
{{ $lang := cond (eq .language "collector") (dict "name" "Collector") (index $.Site.Data.instrumentation .language) -}}
{{ $cncfTag := cond (isset . "cncfProjectLevel") (printf "<img alt=\"CNCF %s Project\" title=\"CNCF %s Project\" style=\"display: inline-block; padding-left: 8px; border: none; width: 16; height: 16px;\" src=\"/img/cncf-icon-color.svg\">" (humanize .cncfProjectLevel) (humanize .cncfProjectLevel)) "" -}}
[{{ .title }}]({{ .urls.website }}){{ $cncfTag }} | {{- cond (eq .license "Commercial") "No" "Yes" }} | {{ $lang.name }} | [{{ replace .urls.docs "https://" "" }}]({{ .urls.docs }})
{{ $lang := cond
(eq .language "collector")
(dict "name" "Collector")
(index $.Site.Data.instrumentation .language)
-}}
{{ $cncfTag := cond
(isset . "cncfProjectLevel")
(printf "<img alt=\"CNCF %s Project\" title=\"CNCF %s Project\" style=\"display: inline-block; padding-left: 8px; border: none; width: 16; height: 16px;\" src=\"/img/cncf-icon-color.svg\">"
(humanize .cncfProjectLevel)
(humanize .cncfProjectLevel))
"" -}}

{{ if not .urls.website -}}
{{ errorf "Website URL is missing for integrations registry entry '%s'" .title -}}
{{ end -}}
{{ if not .urls.docs -}}
{{ errorf "Docs URL is missing for integrations registry entry '%s'" .title -}}
{{ end -}}

{{/* Each line below is a table column */ -}}

[{{ .title }}]({{ .urls.website }})
{{- $cncfTag }} |
{{- cond (eq .license "Commercial") "No" "Yes" }} |
{{- $lang.name -}}
| [{{ replace .urls.docs "https://" "" }}]({{ .urls.docs }})
{{- end }}

[^1]: Listed alphabetically