Skip to content

Commit d688019

Browse files
committed
fix: add validation to templates
1 parent de563a5 commit d688019

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cmd/readmevalidation/codertemplates.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ func validateCoderTemplateReadme(rm coderResourceReadme) []error {
7070
for _, err := range validateCoderTemplateReadmeBody(rm.body) {
7171
errs = append(errs, addFilePathToError(rm.filePath, err))
7272
}
73+
for _, err := range validateResourceGfmAlerts(rm.body) {
74+
errs = append(errs, addFilePathToError(rm.filePath, err))
75+
}
7376
if fmErrs := validateCoderResourceFrontmatter("templates", rm.filePath, rm.frontmatter); len(fmErrs) != 0 {
7477
errs = append(errs, fmErrs...)
7578
}

registry/coder/templates/azure-linux/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This means, when the workspace restarts, any tools or files outside of the home
3535
3636
### Persistent VM
3737

38-
> [!IMPORTANT]
38+
> [!IMPORTANT]
3939
> This approach requires the [`az` CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli#install) to be present in the PATH of your Coder Provisioner.
4040
> You will have to do this installation manually as it is not included in our official images.
4141

registry/coder/templates/azure-windows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This means, when the workspace restarts, any tools or files outside of the data
3535
3636
### Persistent VM
3737

38-
> [!IMPORTANT]
38+
> [!IMPORTANT]
3939
> This approach requires the [`az` CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli#install) to be present in the PATH of your Coder Provisioner.
4040
> You will have to do this installation manually as it is not included in our official images.
4141

0 commit comments

Comments
 (0)