Commit Graph

2 Commits

Author SHA1 Message Date
karthik-us
ecbac2182b cleanup: fix the pre-commit-golang repo link
Initialization of pre-commit-golang environment is failing when
using the git://github.com/dnephin/pre-commit-golang repo link.
Changing it to https://github.com/dnephin/pre-commit-golang
fixed the issue.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
Fixes: #3760
2023-04-20 15:38:12 +00:00
Yug
6287f6c6ec ci: Add pre-commit hook to catch issues locally
The Git hooks force the developers to satisty
certain rules before commiting changes(locally).

Following checks will be run before allowing developers
to commit changes:
1. Check if the commit message has a valid sign-off.
2. Catch gofmt issues, if any.
3. Verify syntax of yaml and json files.(if present)
4. Makes sure that files end in a new line.
5. Trims trailing whitespace.
6. Run commitlint check on the commit message.

The developers will not be allowed to commit changes
without satisfying the above mentioned rules; This will
inturn help in avoiding failures on CI.

Signed-off-by: Yug <yuggupta27@gmail.com>
2020-08-19 16:01:16 +00:00