Skip to content

Commit 4bdaa1f

Browse files
committed
CLI. Descriptions passed to change command all go into a commit messages
1 parent 453a2e1 commit 4bdaa1f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ makeapp changelog
55
Unreleased
66
----------
77
+ Added virtual environment creation on project rollout.
8-
+ CLI. Added command.
8+
+ CLI. Added 'venv reset' command.
9+
+ CLI. Descriptions passed to 'change' command all go into a commit messages.
910
* Added QA for Py 3.11, 3.12.
1011
* Dropped QA for Py 3.7, 3.8.
1112
* Fixed package name availability check.

makeapp/apptools.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,11 @@ def add_change(self, descriptions: Union[List[str], Tuple[str, ...], str], *, st
459459
if stage_modified:
460460
files_to_stage.extend(self.vcs.get_modified())
461461

462-
if len(descriptions) == 1:
463-
# Set a description as a commit message.
464-
commit_message = descriptions[0].strip(changelog.PREFIXES)
462+
# Set a description as a commit message.
463+
commit_message = '\n'.join(
464+
description.strip(changelog.PREFIXES)
465+
for description in descriptions
466+
)
465467

466468
self.vcs.add(files_to_stage)
467469
self.vcs.commit(commit_message)

0 commit comments

Comments
 (0)