Skip to content

feat: generate golden files for notification templates #14537

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

Merged
merged 24 commits into from
Sep 4, 2024
Prev Previous commit
Next Next commit
fix range
  • Loading branch information
mtojek committed Sep 4, 2024
commit c23da288e9dbe0083aca8ecf351ca1734ea6a874
4 changes: 2 additions & 2 deletions coderd/database/migrations/000249_email_reports.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Template {{.Labels.template_display_name}} has failed to build {{.Data.failed_bu

**Report:**

{{range _, $version := .Data.template_versions}}
{{range $version := .Data.template_versions}}
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1}}s{{end}}:
{{range $i, $build := $version.failed_builds}}
{{range $build := $version.failed_builds}}
* [{{$build.workspace_owner_username}} / {{$build.workspace_name}} / #{{$build.build_number}}]({{base_url}}/@{{$build.workspace_owner_username}}/{{$build.workspace_name}}/builds/{{$build.build_number}})
{{end}}
{{end}}
Expand Down
Loading