Skip to content

Releases: craftech-io/pre-commit

v0.5.0

17 Oct 21:26
c5b1437

Choose a tag to compare

🚀 Release Notes — v0.5.0

Overview

Hooks have been added for Helm repositories, such as the Kube-app. The README.md has also been modified to provide more detail on the new hooks, as well as improved formatting and styling.

What's Changed

  • Feat/helm pre commit hooks by @LautaroTorchia in #22

  • helm-lint: Validates Helm charts using the native helm lint tool, detecting syntax errors, missing values, and configuration issues. Automatically searches for Chart.yaml files and reports errors with colored output in the terminal.

  • helm-template-check: Renders templates using helm template to verify that they generate valid Kubernetes manifests. Validates template syntax before deployment, displaying file-specific errors.

  • yamllint: Validates YAML file syntax using yamllint, parses structure and formatting, and reports errors in parsable format with exact rows and columns.


Upgrade Guide

Update consumer repositories to use the new tag and hooks:

# .pre-commit-config.yaml (consumer repo)
repos:
  - repo: git@github.com:craftech-io/pre-commit.git
    rev: v0.5.0
    hooks:
      - id: helm-lint
      - id: helm-template
      - id: yamllint
        # Optional: always show detailed output even when passing
        verbose: true

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

19 Sep 12:57

Choose a tag to compare

🚀 Release Notes — v0.4.0

Overview

Deleted the Pipeline Generator unused hook and fixed a problem with the Terraform Validate hook that caused the whole hook to fail


What's Changed

  • Deleted hooks/pipeline-generator.sh
  • Modified hooks/terraform-validate.sh to be executable on linux by default

Upgrade Guide

Update consumer repositories to use the new tag and hooks:

# .pre-commit-config.yaml (consumer repo)
repos:
  - repo: git@github.com:craftech-io/pre-commit.git
    rev: v0.4.0
    hooks:
      - id: terraform-fmt
      - id: terraform-validate
        # Optional: always show detailed output even when passing
        verbose: true

v0.3.0

16 Sep 18:56
44eb0fc

Choose a tag to compare

🚀 Release Notes — v0.3.0

Overview

This release introduces internal pre-commit hooks for Terraform to standardize local checks before every commit:

  • terraform-fmt: checks formatting (terraform fmt --check -diff).
  • terraform-validate: runs terraform init -backend=false followed by terraform validate, with clear per-directory/per-file output.

Both hooks ignore examples/ and .terraform/. Validation gracefully skips directories that require a private registry when credentials are not present (prints a warning instead of failing the commit).


What's Added

  • ✅ New terraform-validate hook (init without backend, validation, friendly output).
  • ✅ Improved UX for both hooks: per-file/per-directory messages, optional verbose output.

What's Changed

  • 🔧 terraform-fmt now runs in check-only mode and shows a diff on failure.

    Previously it may have auto-formatted files; now it fails if formatting is needed so the developer can run terraform fmt explicitly.

  • 🧹 Both hooks exclude examples/ and .terraform/ by default.

  • 🔐 Validation no longer hard-fails when a private registry is unreachable; it shows skipped (requires private registry auth) and continues with the rest.


Upgrade Guide

Update consumer repositories to use the new tag and hooks:

# .pre-commit-config.yaml (consumer repo)
repos:
  - repo: git@github.com:craftech-io/pre-commit.git
    rev: v0.3.0
    hooks:
      - id: terraform-fmt
      - id: terraform-validate
        # Optional: always show detailed output even when passing
        verbose: true

v0.2.2

07 Dec 17:44
9e3a499

Choose a tag to compare

BugFix

  • Silent vault command output

v0.2.1

12 Nov 19:33
7f78704

Choose a tag to compare

BugFix

  • Allow vault command failure with warning.

v0.2.0

11 Nov 14:57
fa2fb74

Choose a tag to compare

Feature

  • Upgrade pipeline generator to v0.8.3

v0.1.3

05 Oct 02:45
4bfd6cb

Choose a tag to compare

Bug Fixes

  • Repository URL to install Pipeline Generator

v0.1.2

05 May 15:13
72618cf

Choose a tag to compare

Bug fixes.

  • Fix load envs from source and add file validation.

v0.1.1

04 May 23:23
d085732

Choose a tag to compare

Bug fixes.

  • Fix EXTRA_KNOW_HOST variable.

v0.1.0

04 May 23:17
bfd0941

Choose a tag to compare

New Features.

  • Add .pgen-var for use multiple variables.