Skip to content

Commit 695610a

Browse files
authored
Update README.md
1 parent 12195b7 commit 695610a

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# codegenius-verify-plugin
2-
校验 COMMIT_EDITMSG 中的信息是否符合 Angualr 规范
1+
# @codegenius/verify-plugin
2+
3+
校验 `COMMIT_EDITMSG` 中的信息是否符合 **Angualr** 规范, 支持命令模式和 **API** 模式;
4+
5+
使用场景: 用于校验正在执行 `git commit` 时所提交的信息是否符合规范.
6+
7+
### 命令模式
8+
9+
```bash
10+
codeg verify
11+
```
12+
13+
### API 模式
14+
15+
```typescript
16+
import { gitCommitVerify } from "code-genius";
17+
18+
(async () => {
19+
await gitCommitVerify();
20+
console.log("Git 提交信息校验通过, 正在执行后续逻辑...");
21+
})();
22+
```

0 commit comments

Comments
 (0)