Change commit-msg hook.sh address to right place (#21343)

Since hook.sh address has moved from

`https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh`

to

`https://cdn.jsdelivr.net/gh/tommarshall/git-good-commit@v0.6.1/hook.sh`

fix the address to the moved address.

Signed-off-by: yuzhipeng <yuzp1996@gmail.com>
This commit is contained in:
yuzhipeng 2024-12-24 10:40:30 +08:00 committed by GitHub
parent a548ab705f
commit d7ab265b10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -312,7 +312,7 @@ The commit message should follow the convention on [How to Write a Git Commit Me
To help write conformant commit messages, it is recommended to set up the [git-good-commit](https://github.com/tommarshall/git-good-commit) commit hook. Run this command in the Harbor repo's root directory:
```sh
curl https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh > .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
curl https://cdn.jsdelivr.net/gh/tommarshall/git-good-commit@v0.6.1/hook.sh > .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
```
### Automated Testing