commitmessagegenerator 1.2.4__py3-none-any.whl → 1.3.0__py3-none-any.whl
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.
- commitmessagegenerator/cli.py +3 -2
- commitmessagegenerator/generator.py +1 -0
- {commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/METADATA +10 -2
- commitmessagegenerator-1.3.0.dist-info/RECORD +10 -0
- {commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/WHEEL +1 -1
- commitmessagegenerator-1.2.4.dist-info/RECORD +0 -10
- {commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/entry_points.txt +0 -0
- {commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/licenses/LICENSE +0 -0
- {commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/top_level.txt +0 -0
commitmessagegenerator/cli.py
CHANGED
|
@@ -3,6 +3,7 @@ import subprocess
|
|
|
3
3
|
from .generator import gerar_mensagem_commit
|
|
4
4
|
from .configure import api_key
|
|
5
5
|
import sys
|
|
6
|
+
import getpass
|
|
6
7
|
|
|
7
8
|
def main():
|
|
8
9
|
parser = argparse.ArgumentParser(description="Gerador de mensagens de commit com IA")
|
|
@@ -29,8 +30,8 @@ def main():
|
|
|
29
30
|
subprocess.run(["git", "push"])
|
|
30
31
|
|
|
31
32
|
if args.configure:
|
|
32
|
-
print("\nPlease input your API KEY\nThis is directly set in the .env file
|
|
33
|
-
key =
|
|
33
|
+
print("\nPlease input your API KEY\nThis is directly set in the .env file")
|
|
34
|
+
key = getpass.getpass()
|
|
34
35
|
api_key(key)
|
|
35
36
|
print("\nAPI KEY saved in .env file\n")
|
|
36
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: commitmessagegenerator
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Generate commit messages with AI (Google Gemini) automatically using `git diff`.
|
|
5
5
|
Author-email: Gabriel Terceiro <gcarolinoterceiro@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -31,6 +31,14 @@ pip install commitmessagegenerator
|
|
|
31
31
|
|
|
32
32
|
## ⚙️ Configuring
|
|
33
33
|
|
|
34
|
+
```bash
|
|
35
|
+
commitgen -cf
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Run this and type you API key to the terminal so the package creates the .env file and automatically adds it to the .gitignore
|
|
39
|
+
|
|
40
|
+
Or do it manually:
|
|
41
|
+
|
|
34
42
|
## IMPORTANT - BEFORE CREATING THIS FILE ADD '.venv' TO YOUR .gitignore SO YOUR API KEY ISN'T EXPOSED
|
|
35
43
|
|
|
36
44
|
Create a `.env` file in the directory where you will run commitgen (usually the root of your Git project):
|
|
@@ -44,7 +52,7 @@ GEMINI_API_KEY=your-gemini-api-key
|
|
|
44
52
|
With the terminal, inside any Git repository with pending changes, run:
|
|
45
53
|
|
|
46
54
|
```bash
|
|
47
|
-
commitgen (-c/-
|
|
55
|
+
commitgen (-c/-cp)
|
|
48
56
|
```
|
|
49
57
|
|
|
50
58
|
The command will:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
commitmessagegenerator/__init__.py,sha256=Wsl1vaSI5fWuK3B9MfZnPp1PxnRfTmnvW_20vgswgT0,45
|
|
2
|
+
commitmessagegenerator/cli.py,sha256=lpYpRpjcKY6dQ2uhm6Rwpos_lEy9RELhuvE6aSI2jxI,1475
|
|
3
|
+
commitmessagegenerator/configure.py,sha256=gzG9cp4B4qIXsoGVTSq-D80N6cmf_A77W73s0k-JkyQ,981
|
|
4
|
+
commitmessagegenerator/generator.py,sha256=eIOvTNMB5YrbfW8gPf0KoRPrfceadLiRqB3vNgHzsg0,1441
|
|
5
|
+
commitmessagegenerator-1.3.0.dist-info/licenses/LICENSE,sha256=q7KJbcPCqUAvkBuI1QNc8Kg9XPfBfnNkLN9WKwudO8U,11
|
|
6
|
+
commitmessagegenerator-1.3.0.dist-info/METADATA,sha256=JYg99lQCKm4-iIZubWTCC0SJO4kR2zvTSdaZqf_47oA,1893
|
|
7
|
+
commitmessagegenerator-1.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
commitmessagegenerator-1.3.0.dist-info/entry_points.txt,sha256=VmVQY00e0SuHsTFZmOCcyN0VYCQlVnZrdZNJdUGLCVo,62
|
|
9
|
+
commitmessagegenerator-1.3.0.dist-info/top_level.txt,sha256=G8wUZw8MTtvYs1WgehFVTPKqw5Td7gGedZZIQbZH1Co,23
|
|
10
|
+
commitmessagegenerator-1.3.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
commitmessagegenerator/__init__.py,sha256=Wsl1vaSI5fWuK3B9MfZnPp1PxnRfTmnvW_20vgswgT0,45
|
|
2
|
-
commitmessagegenerator/cli.py,sha256=z4qeceip7-uhJAujXPyJ0yP903Dxmf9_MJwrfh45I2k,1451
|
|
3
|
-
commitmessagegenerator/configure.py,sha256=gzG9cp4B4qIXsoGVTSq-D80N6cmf_A77W73s0k-JkyQ,981
|
|
4
|
-
commitmessagegenerator/generator.py,sha256=c32Z0jTafzGVo0alQyRaOUGn63c40hr55hnRWl4KbH8,1407
|
|
5
|
-
commitmessagegenerator-1.2.4.dist-info/licenses/LICENSE,sha256=q7KJbcPCqUAvkBuI1QNc8Kg9XPfBfnNkLN9WKwudO8U,11
|
|
6
|
-
commitmessagegenerator-1.2.4.dist-info/METADATA,sha256=FdbByPlkwsqIJYL3ivA_YDARvbCcwkyR4CZlPapMHTE,1707
|
|
7
|
-
commitmessagegenerator-1.2.4.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
8
|
-
commitmessagegenerator-1.2.4.dist-info/entry_points.txt,sha256=VmVQY00e0SuHsTFZmOCcyN0VYCQlVnZrdZNJdUGLCVo,62
|
|
9
|
-
commitmessagegenerator-1.2.4.dist-info/top_level.txt,sha256=G8wUZw8MTtvYs1WgehFVTPKqw5Td7gGedZZIQbZH1Co,23
|
|
10
|
-
commitmessagegenerator-1.2.4.dist-info/RECORD,,
|
{commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{commitmessagegenerator-1.2.4.dist-info → commitmessagegenerator-1.3.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|