Merge dev with main #27

Merged
8464960 merged 89 commits from dev into main 2026-01-28 10:54:23 +00:00
3 changed files with 13 additions and 2 deletions
Showing only changes of commit 670d1f0a6a - Show all commits

View File

@@ -5,7 +5,6 @@ commit_msg=$(cat "$commit_msg_file")
if echo "$commit_msg" | grep -Eq "^(feat|fix|refactor|perf|style|test|docs|build|chore|revert): .+"; then if echo "$commit_msg" | grep -Eq "^(feat|fix|refactor|perf|style|test|docs|build|chore|revert): .+"; then
if echo "$commit_msg" | grep -Eq "^(ref|close):\sN25B-.+"; then if echo "$commit_msg" | grep -Eq "^(ref|close):\sN25B-.+"; then
echo "🎉 commit message is Valid"
exit 0 exit 0
else else
echo "❌ Commit message invalid! Must end with [ref/close]: N25B-000" echo "❌ Commit message invalid! Must end with [ref/close]: N25B-000"

View File

@@ -9,7 +9,6 @@ fi
# allowed pattern <type/> # allowed pattern <type/>
if echo "$branch" | grep -Eq "^(feat|fix|refactor|perf|style|test|docs|build|chore|revert)\/\w+(-\w+){0,5}$"; then if echo "$branch" | grep -Eq "^(feat|fix|refactor|perf|style|test|docs|build|chore|revert)\/\w+(-\w+){0,5}$"; then
echo "✅ Branch name valid: $branch"
exit 0 exit 0
else else
echo "❌ Invalid branch name: $branch" echo "❌ Invalid branch name: $branch"

View File

@@ -88,3 +88,16 @@ Then resume the steps from above.
cd src cd src
python -m robot_interface.main python -m robot_interface.main
``` ```
## GitHooks
To activate automatic commits/branch name checks run:
```shell
git config --local core.hooksPath .githooks
```
If your commit fails its either:
branch name != <type>/description-of-branch ,
commit name != <type>: description of the commit.
<ref>: N25B-Num's