ai_git_commit 0.1.3 → 0.1.4
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/.rubocop.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +5 -0
- data/lib/ai_git_commit/config.rb +1 -1
- data/lib/ai_git_commit/version.rb +1 -1
- data/lib/templates/ai_git_commit.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd13bd5c9ac0972dcf3b5b6b8892dba49d735e93e1d7cbd2e4e946dc45d0f5b
|
4
|
+
data.tar.gz: 73a892b8dc8d54cfb2a119e353011cc6068ae9ecdd5cb2d2934930fde8df5ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a15357618d44474a8641880592abe4b63184a61a4af15cf28129e3b1ccb87eb696d40ec27b59f5bb4f2124116e2a7e165181ddfa0882cb1a19cd2393e4f1a152
|
7
|
+
data.tar.gz: a90d9cc112a98bad9748d33779127de745491196e9be0dcc49b1e5412dafc9cce00e5a2c4657c1c0f24cf9d0a6c515b2dd7e40d4e2fc1310b63abe87cc46382f
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -33,6 +33,11 @@ git commit
|
|
33
33
|
```
|
34
34
|
That's it! Your commit message will be generated by AI.
|
35
35
|
|
36
|
+
If you would like to skip the AI generation for a specific commit, you can use:
|
37
|
+
```bash
|
38
|
+
SKIP_AI=true git commit
|
39
|
+
```
|
40
|
+
|
36
41
|
## Contributing
|
37
42
|
|
38
43
|
Bug reports and pull requests are welcome on GitHub at https://github.com/drkmen/ai_git_commit.
|
data/lib/ai_git_commit/config.rb
CHANGED
@@ -8,7 +8,7 @@ module AiGitCommit
|
|
8
8
|
|
9
9
|
# Initializes configuration with default values
|
10
10
|
def initialize
|
11
|
-
@openai_api_key = ENV
|
11
|
+
@openai_api_key = ENV.fetch("OPENAI_API_KEY", nil)
|
12
12
|
@model = "gpt-3.5-turbo"
|
13
13
|
@program_language = "Ruby"
|
14
14
|
@max_tokens = 300
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ai_git_commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Belyaev
|
@@ -86,6 +86,7 @@ metadata:
|
|
86
86
|
homepage_uri: https://github.com/drkmen/ai_git_commit
|
87
87
|
source_code_uri: https://github.com/drkmen/ai_git_commit
|
88
88
|
changelog_uri: https://github.com/drkmen/ai_git_commit/blob/main/CHANGELOG.md
|
89
|
+
rubygems_mfa_required: 'true'
|
89
90
|
rdoc_options: []
|
90
91
|
require_paths:
|
91
92
|
- lib
|