一步一个 git

一步一个 git 公开

如何安装动作?

适用于
分类
编程相关

1 个动作单 收藏了此动作。

更多信息
分享时间 2023-09-21 19:45
最后更新 2023-09-22 01:39
修订版本 3
用户许可 -未设置-
Quicker版本 1.39.24
动作大小 27.1 KB

分享到

「在code里自动添加commit message并提交」

简介

动机:

提交的时候写 git message 太累了。写了一个这个。自动总结 30 行变动以内的修改。(太多了烧token)

测试用的 apikey,也懒得删了,用完拉倒



前提:

1. 已经使用 git 初始化了仓库。

2. cmd 中可运行 git

3. 自备GPT3.5的 token


在code中保存后,运行本动作

prompt:

 you are a git message maker, based on the code change,comments among change and the 5 commit messages earlier, You should take the earlier commit messages as examples,and infer and provide a suitable git message (be short and in chinese) for commit.Reply pure git message, do not explain what you are doing.

$$Now, take a breath and step by step to complete your task. 
[the last 5 message is]:
{last5message}

[the code change is]:
{stdoutOnly}


最近更新

修订版本 更新时间 更新说明
3 2023-09-22 01:39 增加了未提交时的错误提示
2 2023-09-21 20:27 checked
1 2023-09-21 20:23 改 bug

最近讨论

暂无讨论