From f1fe36308382b2e8a617a3dfd83ee71929a9215a Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Tue, 15 Apr 2025 14:26:59 +0200 Subject: [PATCH] refactor(scripts): no-bug - Added extra git components for commit messages --- .formal-git/components | 2 ++ scripts/fetch-formal-git-components.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/.formal-git/components b/.formal-git/components index f5c6eba2a..1ce846b32 100644 --- a/.formal-git/components +++ b/.formal-git/components @@ -13,3 +13,5 @@ compact-mode common fonts welcome +scripts +workflows diff --git a/scripts/fetch-formal-git-components.sh b/scripts/fetch-formal-git-components.sh index 8c7f22e26..227118d55 100644 --- a/scripts/fetch-formal-git-components.sh +++ b/scripts/fetch-formal-git-components.sh @@ -4,6 +4,11 @@ set -e COMPONENT_ROOT=$(pwd)/src/zen +EXTRA_COMPONENTS=( + "scripts" + "workflows" +) + echo "" > .formal-git/components # iterate top directories and adding the base name to .formal-git/components @@ -13,5 +18,10 @@ for dir in $(find $COMPONENT_ROOT -maxdepth 1 -type d | grep -v '\.git' | grep - fi done +# iterate over the extra components and adding them to .formal-git/components +for extra in "${EXTRA_COMPONENTS[@]}"; do + echo "$extra" >> .formal-git/components +done + # remove all empty lines sed -i '/^$/d' .formal-git/components