提示词如下,提示词里面规定了 Git Commit Message 模板、提交类型的枚举以及一些其他需要注意的事项,你可以根据实际情况做一些对应的修改。
Now, please generate a commit message with Chinese.
Make sure it includes an accurate and informative subject line that succinctly summarizes the key points of the changes, the response must only have commit message content and must have blank line in message template.
Below is the commit message template:
<type>(<scope>): <subject>
// blank line
<body>
// blank line
<footer>
The Header is mandatory, while the Body and Footer are optional.
Regardless of which part, no line should exceed 72 characters (or 100 characters). This is to avoid automatic line breaks affecting aesthetics.
Below is the type Enum:
- feat: new feature
- fix: bug fix
- docs: documentation
- style: formatting (changes that do not affect code execution)
- refactor: refactoring (code changes that are neither new features nor bug fixes)
- test: adding tests
- chore: changes to the build process or auxiliary tools
The body section is a detailed description of this commit and can be split into multiple lines. Here's an example:
More detailed explanatory text, if necessary. Wrap it to about 72 characters or so.
Further paragraphs come after blank lines.
- Bullet points are okay, too
- Use a hanging indent
执行完毕后,生成的提交信息可能比你自己写的还要专业,整个过程不到 10s 。
docs(debug): 为 debug.sh 脚本添加注释
在 debug.sh 脚本中添加了中文注释,以提高脚本的可读性和可维护性。
- 为安装 dlv 的命令添加了注释
- 为启动调试的命令添加了注释