chore: добавлены правила git, шаблон PR и проверочные хуки (#4)
Правила работы с ветками, коммитами и PR в docs/contributing.md. Lefthook проверяет формат коммита, форматирует Go и ищет секреты перед коммитом. Refs: 1.2.8, 1.2.9, 1.2.10, 1.13.4 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Reviewed-on: #4 Co-authored-by: BrowenSiz <top.timashevsky@gmail.com>
This commit was merged in pull request #4.
This commit is contained in:
1 parent
377a7f3807
commit
dcee1faf7d
9 files changed
+202
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Git-хуки проекта. Установка один раз после клонирования: lefthook install
|
||||
# Правила — docs/contributing.md
|
||||
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
gitleaks:
|
||||
run: gitleaks git --pre-commit --staged --redact --no-banner .
|
||||
gofmt:
|
||||
glob: "*.go"
|
||||
run: gofmt -w {staged_files}
|
||||
stage_fixed: true
|
||||
# prettier подключается в #2.7.2 вместе с pnpm-workspace
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
format:
|
||||
run: node tools/git-hooks/commit-msg.mjs {1}
|
||||
Reference in new issue
Block a user