idea中使用 github copilot 生成 git 提交记录指定生成中文

idea中使用 github copilot 生成 git 提交记录指定生成中文
idea中使用 github copilot 生成 git 提交记录指定生成中文

Copilot 全局固定 Commit Message 格式

mac下编辑这个文件:

~/.config/github-copilot/intellij/global-git-commit-instructions.md

写入规则,例如:

使用 Conventional Commits 格式生成提交信息。

规则:
- 类型用英文:feat、fix、docs、style、refactor、test、chore
- 冒号后用中文描述
- 尽量单行
- 不超过 72 个字符

示例:
- feat: 新增用户列表页面
- fix: 修复登录后未跳转首页的问题

保存后重启 IDEA / WebStorm。

GitHub Docs

Adding repository custom instructions for GitHub Copilot in your IDE - GitHub...

Create repository custom instructions files that give Copilot additional context on how to understand your project and how to build, test and validate its changes.

1 个帖子 - 1 位参与者

阅读完整话题

来源: LinuxDo 最新话题查看原文