devcommit 0.1.5.4__py3-none-any.whl → 0.1.5.5__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.
- devcommit/app/changelog.py +8 -3
- {devcommit-0.1.5.4.dist-info → devcommit-0.1.5.5.dist-info}/METADATA +3 -3
- {devcommit-0.1.5.4.dist-info → devcommit-0.1.5.5.dist-info}/RECORD +6 -6
- {devcommit-0.1.5.4.dist-info → devcommit-0.1.5.5.dist-info}/WHEEL +1 -1
- {devcommit-0.1.5.4.dist-info → devcommit-0.1.5.5.dist-info}/entry_points.txt +0 -0
- {devcommit-0.1.5.4.dist-info → devcommit-0.1.5.5.dist-info}/licenses/COPYING +0 -0
devcommit/app/changelog.py
CHANGED
|
@@ -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
|
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
|
|
|
@@ -2,7 +2,7 @@ devcommit/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
|
2
2
|
devcommit/__version__.py,sha256=V-XdLtsUi6WXZQjdiIm5Hd_DM77oCPs6tmPghmb3GbQ,226
|
|
3
3
|
devcommit/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
devcommit/app/ai_providers.py,sha256=Gqgs03oVfzR830dBSJ_VKn896DpXGWGuaAdsNtvSbI8,11938
|
|
5
|
-
devcommit/app/changelog.py,sha256=
|
|
5
|
+
devcommit/app/changelog.py,sha256=uUM9mHYnBF2-9x7w5o3SNEGZx79In524qmlvHlfCXb0,2616
|
|
6
6
|
devcommit/app/gemini_ai.py,sha256=xEn94dt-kKg5fa6Wpxu09eKfN916pfWO_IWEBOGuEQE,3638
|
|
7
7
|
devcommit/app/prompt.py,sha256=isjyLul4UTWJSW8kL6fSVjTBTTej0x93o5BFKW9LsZE,4325
|
|
8
8
|
devcommit/create_config.py,sha256=dbW4nobO046t0dVoLbTZOKHMB4p1dATqH4d0K1MxR5g,3978
|
|
@@ -11,8 +11,8 @@ devcommit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
11
11
|
devcommit/utils/git.py,sha256=o32VbzT-0MT-AgfdtZXqn-H9SUINmVRG6AvYIJdcpDU,26858
|
|
12
12
|
devcommit/utils/logger.py,sha256=HXYOU2Vd3M5O4T6fshcg5FcfWER4kQiKOiJ1vM6_0mw,1597
|
|
13
13
|
devcommit/utils/parser.py,sha256=VXxHPZ75Jx6aILG1o14y1hGNlcvutQUWkoEtR_RR9Zw,2280
|
|
14
|
-
devcommit-0.1.5.
|
|
15
|
-
devcommit-0.1.5.
|
|
16
|
-
devcommit-0.1.5.
|
|
17
|
-
devcommit-0.1.5.
|
|
18
|
-
devcommit-0.1.5.
|
|
14
|
+
devcommit-0.1.5.5.dist-info/METADATA,sha256=TAlWyhjIdHRs-wYbppzEwhpz8BQDVmDaIzX80zZfvg4,67475
|
|
15
|
+
devcommit-0.1.5.5.dist-info/WHEEL,sha256=Vz2fHgx6HFtSwhs8KvkHLqH5Ea4w1_rner5uNVGCeIE,88
|
|
16
|
+
devcommit-0.1.5.5.dist-info/entry_points.txt,sha256=cTvXe20Iqbeo2Jz0wSHEFLFacH4NkYfmy6Sr1THL1Es,103
|
|
17
|
+
devcommit-0.1.5.5.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
18
|
+
devcommit-0.1.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|