git-gpt 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/git/gpt/version.rb +1 -1
- data/lib/git/gpt.rb +10 -12
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2078d9c3a8dc4b4369906cf4e571f83039e2eaac0777501188abce7073a7f60
|
|
4
|
+
data.tar.gz: b317be95bf26241f74339735ca35384fc22538795d183cc1d227c90aeac43b3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d67ad9836c1ea99985e482c5a2df5da873d4e2e32d2c7b691ec0fda75c0d4b21894d376bc4b5ed99ff6e6e9b64b1d1ae5b131a440496283570933217dfdd51a4
|
|
7
|
+
data.tar.gz: 7b7651c024ce9dc14412f14701c6bdba8ef917045dcfa3618d31f13eeb77f47728018608e732cb69ad165dead5390558883ad92f14e61c560f3b26b1f7100568
|
data/README.md
CHANGED
|
@@ -70,7 +70,7 @@ See a real example [here](https://github.com/assaydepot/git-gpt/blob/main/.git-g
|
|
|
70
70
|
|
|
71
71
|
## Contributing
|
|
72
72
|
|
|
73
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
73
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/assaydepot/git-gpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
|
|
74
74
|
|
|
75
75
|
## License
|
|
76
76
|
|
data/lib/git/gpt/version.rb
CHANGED
data/lib/git/gpt.rb
CHANGED
|
@@ -10,21 +10,19 @@ module Git
|
|
|
10
10
|
class Error < StandardError; end
|
|
11
11
|
class CLI
|
|
12
12
|
def run(argv=nil)
|
|
13
|
-
prompt
|
|
14
|
-
|
|
13
|
+
prompt =<<EOS
|
|
14
|
+
You are a software engineer working on a project. You write diligent and detailed commit messages. You are working on a new feature and you are ready to commit your changes.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
$GIT_STATUS
|
|
19
|
-
```
|
|
16
|
+
The current git status is:
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
$GIT_DIFF
|
|
24
|
-
```
|
|
18
|
+
$GIT_STATUS
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
The current git diff is:
|
|
21
|
+
|
|
22
|
+
$GIT_DIFF
|
|
23
|
+
|
|
24
|
+
Please write a commit message for this change. Format the commit message using markdown. You may use bullet points. Please comment specifically on any files with significant changes.
|
|
25
|
+
EOS
|
|
28
26
|
|
|
29
27
|
config = {
|
|
30
28
|
"model" => "gpt-3.5-turbo",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-gpt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Petersen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-06-
|
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|