Skip to content

Add validation for Template and Module README files #194

@Parkreiner

Description

@Parkreiner

This is a follow up to these issues/PRs:

When we brought in all the templates that were previously in coder/coder, we never updated any other files. Notably, we never added validation logic to ensure that all the README files were formatted correctly, or had any required content

That already caused a problem when we tried to publish a template under the new Coder Labs namespace.

We can definitely reuse a good amount of the validation logic we have right now. The main thing we need to figure out is, beyond basic README structure validation, is there any specific content that template READMEs should have? For example, module READMEs require an example Terraform snippet so that users can easily bring them in. Should templates have anything similar?

Action steps

  1. Identify what template-specific content (if any) we want to require from template README files
  2. Update validation logic to ensure that templates follow base guidelines for README formatting and have all required content
  3. Update any template files as necessary to match new validation requirements

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions