git-gpt 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 848d9c6a4ae6f3e034ad83ef04d112dc43172eaa29f13697b5ab677f0d31ab90
4
- data.tar.gz: cfded1c59cfba5df552360d5f37632727a111b57b80a3c3a14bca594af265827
3
+ metadata.gz: 361917c413bdd904805df016c8b3574bc5fe27d5ac69b50e0bbbc6bd2eadfe37
4
+ data.tar.gz: e993f778f75d42f858dfd614fb758f920d08dbd75ab65e8db852ea6450dd1014
5
5
  SHA512:
6
- metadata.gz: 21f728913149d02780f1a63177695b05b7b15cd47f595c1af1652dfa0f04cea1b209a71605b99405cc5f1ca5be6d8f7ad56e5a9a80a55f075b3fbe279dedf755
7
- data.tar.gz: 273d32a80efb211c9e0be1a53c630e7a8b06efa0413771be434ce9bdb4e05e920d01d7813d0e1801b475acf0301f7ccdd46a687189e929d5af82daab0a8243a0
6
+ metadata.gz: d09b73de08fa50e61feb3280b2e4178882b1da97bdcdeda0ac7b04b9257d28478b8468c9683b7e73e1af10e8c564e831b8f8d83a7a2e5f0984f505e797c8df98
7
+ data.tar.gz: 62a5a8e076e111351ff5261d5b31b93e3028894c97a7f35898fa764d7876af75f7833b9bb8bf586332beb84068d7663318c7d3cc022034b977e88eb74b4e1999
data/README.md CHANGED
@@ -31,6 +31,12 @@ git gpt file1 file2 file3
31
31
 
32
32
  In the above example, `file1`, `file2`, and `file3` are placeholders for the file names you want to focus on. This will generate a commit message based on the changes in those files only.
33
33
 
34
+ ### USAGE NOTE
35
+
36
+ `git gpt` does not actually commit your code, it simply prints a commit message that you can choose to use or not. If you run it multiple times, you will likely get different results.
37
+
38
+ By default it asks ChatGPT to create short messages. If you like longer or multiline messages, you can adjust your prompt (see Advanced Configuration below).
39
+
34
40
  ## Basic Configuration
35
41
 
36
42
  Best practice is to set the `OPENAI_API_KEY` environment veriable. Optionally, you can set `OPENAI_ORGANIZATION_ID`.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Git
4
4
  module Gpt
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
data/lib/git/gpt.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "gpt/version"
4
4
  require 'yaml'
5
+ require 'json'
5
6
  require 'openai'
6
7
 
7
8
  module Git
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-gpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Petersen