When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Contribution is also welcome, and should follow the guidelines described here:
https://www.terraform-best-practices.com/
Please ensure you have the following installed before you start, to ensure that your contribution follows the same quality standards.
Finally, install pre-commit into your working copy:
pre-commit install
This will ensure that hooks run before you commit.
When you commit the following installed and configured hooks will run:
- terraform-docs
- terraform fmt
- If any files were modified during the
pre-commit(normally by terraform-docs and terraform fmt) it will exit and you can review any changes made to the files.- If you need to manually run
pre-commit:pre-commit run --all-files
- If you need to manually run
- Once you review the files you can run your commit again.
- If you need to bypass any of the validations performed by
pre-committo push your changes use the--no-verifyoption:git commit --no-verify -m "some commit notes" - Once all issues are fixed you can push your changes as you would normally do.
- Fork the project.
- Start a feature branch based on the
mainbranch (git checkout -b <feature-name> main). - Update the README.md with details of changes including example hcl blocks and example files if appropriate.
- Commit and push your changes.
- Issue a pull request and wait for your code to be reviewed.
- Add semantics prefix to your PR or Commits (at least one of your commit groups)
- README.md has been updated.
To generate changelog, Pull Requests or Commits must have semantic and must follow conventional specs below:
feat:for new featuresfix:for bug fixesimprovement:for enhancementsdocs:for documentation and examplesrefactor:for code refactoringtest:for testsci:for CI purposechore:for chores stuff
The chore prefix skipped during changelog generation. It can be used for chore: update changelog commit message by example.