devcommit 0.1.5.4__tar.gz → 0.1.5.5__tar.gz
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.
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/PKG-INFO +3 -3
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/README.md +2 -2
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/app/changelog.py +8 -3
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/pyproject.toml +2 -2
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/COPYING +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/__init__.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/__version__.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/app/__init__.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/app/ai_providers.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/app/gemini_ai.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/app/prompt.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/create_config.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/main.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/utils/__init__.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/utils/git.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/utils/logger.py +0 -0
- {devcommit-0.1.5.4 → devcommit-0.1.5.5}/devcommit/utils/parser.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devcommit
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.5
|
|
4
4
|
Summary: AI-powered git commit message generator
|
|
5
5
|
License: GNU GENERAL PUBLIC LICENSE
|
|
6
6
|
Version 3, 29 June 2007
|
|
@@ -1150,7 +1150,7 @@ devcommit --stageAll --changelog --files src/
|
|
|
1150
1150
|
|
|
1151
1151
|
- **With `--stageAll`**: Changelog is generated from unstaged changes **before** staging
|
|
1152
1152
|
- **Without `--stageAll`**: Changelog is generated from the last commit **after** committing
|
|
1153
|
-
- Changelogs are saved as markdown files
|
|
1153
|
+
- Changelogs are saved as markdown files inside `branch/year/month/day` folders with time-based names (e.g., `changelogs/staging/2026/01/28/00-55-30.md`)
|
|
1154
1154
|
- Default base directory: `changelogs/` (configurable via `CHANGELOG_DIR` in `.dcommit`)
|
|
1155
1155
|
- Uses Keep a Changelog format with AI-generated content
|
|
1156
1156
|
|
|
@@ -1163,7 +1163,7 @@ devcommit --stageAll --changelog --files src/
|
|
|
1163
1163
|
# Stage all changes and generate changelog before committing
|
|
1164
1164
|
devcommit --stageAll --changelog
|
|
1165
1165
|
|
|
1166
|
-
# The changelog file is created in changelogs/<year>/<month>/ directory
|
|
1166
|
+
# The changelog file is created in changelogs/<branch>/<year>/<month>/<day>/ directory
|
|
1167
1167
|
# Then changes are staged and committed
|
|
1168
1168
|
```
|
|
1169
1169
|
|
|
@@ -445,7 +445,7 @@ devcommit --stageAll --changelog --files src/
|
|
|
445
445
|
|
|
446
446
|
- **With `--stageAll`**: Changelog is generated from unstaged changes **before** staging
|
|
447
447
|
- **Without `--stageAll`**: Changelog is generated from the last commit **after** committing
|
|
448
|
-
- Changelogs are saved as markdown files
|
|
448
|
+
- Changelogs are saved as markdown files inside `branch/year/month/day` folders with time-based names (e.g., `changelogs/staging/2026/01/28/00-55-30.md`)
|
|
449
449
|
- Default base directory: `changelogs/` (configurable via `CHANGELOG_DIR` in `.dcommit`)
|
|
450
450
|
- Uses Keep a Changelog format with AI-generated content
|
|
451
451
|
|
|
@@ -458,7 +458,7 @@ devcommit --stageAll --changelog --files src/
|
|
|
458
458
|
# Stage all changes and generate changelog before committing
|
|
459
459
|
devcommit --stageAll --changelog
|
|
460
460
|
|
|
461
|
-
# The changelog file is created in changelogs/<year>/<month>/ directory
|
|
461
|
+
# The changelog file is created in changelogs/<branch>/<year>/<month>/<day>/ directory
|
|
462
462
|
# Then changes are staged and committed
|
|
463
463
|
```
|
|
464
464
|
|
|
@@ -5,6 +5,7 @@ import os
|
|
|
5
5
|
from datetime import datetime
|
|
6
6
|
|
|
7
7
|
from devcommit.app.ai_providers import get_ai_provider
|
|
8
|
+
from devcommit.utils.git import get_current_branch
|
|
8
9
|
from devcommit.utils.logger import config
|
|
9
10
|
|
|
10
11
|
|
|
@@ -75,14 +76,18 @@ def save_changelog(content: str, directory: str = None) -> str:
|
|
|
75
76
|
directory = config("CHANGELOG_DIR", default="changelogs")
|
|
76
77
|
|
|
77
78
|
now = datetime.now()
|
|
79
|
+
branch_name = get_current_branch().replace("/", "-")
|
|
78
80
|
year_directory = now.strftime("%Y")
|
|
79
81
|
month_directory = now.strftime("%m")
|
|
80
|
-
|
|
82
|
+
day_directory = now.strftime("%d")
|
|
83
|
+
target_directory = os.path.join(
|
|
84
|
+
directory, branch_name, year_directory, month_directory, day_directory
|
|
85
|
+
)
|
|
81
86
|
|
|
82
|
-
# Create the year/month directory structure if it doesn't exist
|
|
87
|
+
# Create the branch/year/month/day directory structure if it doesn't exist
|
|
83
88
|
os.makedirs(target_directory, exist_ok=True)
|
|
84
89
|
|
|
85
|
-
filename = now.strftime("%
|
|
90
|
+
filename = now.strftime("%H-%M-%S.md")
|
|
86
91
|
filepath = os.path.join(target_directory, filename)
|
|
87
92
|
|
|
88
93
|
with open(filepath, "w", encoding="utf-8") as f:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "devcommit"
|
|
3
|
-
version = "0.1.5.
|
|
3
|
+
version = "0.1.5.5"
|
|
4
4
|
description = "AI-powered git commit message generator"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = {file = "COPYING"}
|
|
@@ -44,7 +44,7 @@ create-dcommit = "devcommit.create_config:create_dcommit"
|
|
|
44
44
|
|
|
45
45
|
[tool.poetry]
|
|
46
46
|
name = "devcommit"
|
|
47
|
-
version = "0.1.5.
|
|
47
|
+
version = "0.1.5.5"
|
|
48
48
|
description = "AI-powered git commit message generator"
|
|
49
49
|
authors = ["Hordunlarmy <Hordunlarmy@gmail.com>"]
|
|
50
50
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|