This is a template repository for CHT Products. You can generate a new repository with the same directory structure and files as in this repository.
When creating a new repository under the Medic organization, select cht-repo-template as a template to use for the new repository.
You can also create a repository directly from the template by following the steps here.
Note: You can read more about CHT Product repositories in the CHT documentation.
- The
mainbranch is locked via branch protection rules. - Merges are done through PRs.
- Automatically delete head branches.
- Issue templates exist.
- PR template exists.
- PRs reference related issues.
- Commit formats follow the guidelines. More info about linting Git commit messages with Husky here.
- The following files exist:
LICENSEspecifying AGPL-3.0 (example)README.md
- The PR template contains a code review checklist.
- A reviewer for a PR merge is enforced by policy.
- A linter is set up. Here's more info on how to use the
eslintconfigurations.
The PR and issue template content can be adjusted according to the product's purpose.
Additionally, the person who creates the repository might need to share repository access with appropriate teams (this may require admin access).
To ensure quality, the CHT Products should also follow the guidelines below:
- Repository runs GitHub Actions CI with automated build and test on each PR.
- Unit tests and successful builds for PR merges are set up.
- Unit tests cover the majority of the code.
- If applicable, integration tests run to test the solution e2e.
- Application faults and errors are logged.
- Logging configuration can be modified without code changes (eg: verbose mode).