From b82c13f77269dad2b67a16cd3a07f0767116fa3b Mon Sep 17 00:00:00 2001 From: Surya Date: Wed, 11 Feb 2026 17:04:26 +0530 Subject: [PATCH 1/3] feat: improve pre-commit action with status log --- CHANGELOG.md | 12 ++++++++++++ pre-commit/action.yaml | 8 ++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62fc701..fd27597 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. +## [UNRELEASED] + +### Added + +- Better cache support in pre-commit action. +- README for Dummy C++ Project. +- Status logging in pre-commit action. + +### Fixed + +- Typos in pre-commit action. + ## [0.2.0] - 2026-02-11 ### Added diff --git a/pre-commit/action.yaml b/pre-commit/action.yaml index 835fb62..42eb455 100644 --- a/pre-commit/action.yaml +++ b/pre-commit/action.yaml @@ -31,7 +31,7 @@ inputs: required: false default: "3.x" use_cache: - description: "Enable or disable caching of pre-commit hooks and cppcheck" + description: "Enable or disable caching of pre-commit hooks" required: false default: "true" use_cppcheck: @@ -57,8 +57,10 @@ runs: if: inputs.use_cppcheck == 'true' shell: bash run: | - sudo apt-get -qq update + echo "Installing Cppcheck..." + sudo apt-get -qq -y update sudo apt-get install -qq -y cppcheck + echo "Cppcheck Installed." - name: Set up pre-commit cache id: cache-pre-commit @@ -75,5 +77,7 @@ runs: PRE_COMMIT_HOME: ${{ github.workspace }}/.cache/pre-commit shell: bash run: | + echo "Running Pre Commit..." pip install pre-commit pre-commit run ${{ inputs.args }} + echo "All Tests Passed!" From 97609fa39ee6e9f52e723cad4736052cdfd5b262 Mon Sep 17 00:00:00 2001 From: Surya Date: Wed, 11 Feb 2026 16:55:42 +0530 Subject: [PATCH 2/3] fix: remove unnecessary comments --- dummy_cpp_project/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/dummy_cpp_project/CMakeLists.txt b/dummy_cpp_project/CMakeLists.txt index 5277b3a..2b70681 100644 --- a/dummy_cpp_project/CMakeLists.txt +++ b/dummy_cpp_project/CMakeLists.txt @@ -41,8 +41,6 @@ # cmake-format: on -# TODO: Will be rewritten. - cmake_minimum_required(VERSION 3.30) # Read version from VERSION file From 31e25a16aace6afb2b9d9c6784e0114e0911e9ca Mon Sep 17 00:00:00 2001 From: Surya Date: Wed, 11 Feb 2026 17:09:23 +0530 Subject: [PATCH 3/3] docs: fix docs --- pre-commit/action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pre-commit/action.yaml b/pre-commit/action.yaml index 42eb455..a882d9c 100644 --- a/pre-commit/action.yaml +++ b/pre-commit/action.yaml @@ -27,11 +27,11 @@ name: "Pre Commit" description: "Runs pre-commit with the given inputs." inputs: python-version: - description: "Version of Python to use" + description: "Version of Python to use." required: false default: "3.x" use_cache: - description: "Enable or disable caching of pre-commit hooks" + description: "Enable or disable caching of pre-commit hooks." required: false default: "true" use_cppcheck: @@ -39,7 +39,7 @@ inputs: required: false default: "true" args: - description: "Arguments given to pre-commit" + description: "Arguments given to pre-commit." required: false default: "--all-files"