Commit graph

27 commits

Author SHA1 Message Date
bom
58e6473747 Split tag_and_push_release into two 2023-03-02 16:39:12 +01:00
bom
21e941cce0 Import GitApi from correct module 2023-03-02 16:26:52 +01:00
0d36a8a66a Fix service test and cleanup services
We now create a temporary git repository that creates a release commit.
Remove whitespaces, unused imports.
2023-03-02 16:17:28 +01:00
bom
8855a2c6b6 Remove unused imports 2023-03-02 15:08:41 +01:00
bom
9c9676b5b8 Pass Release instead of Version object 2023-03-02 15:04:30 +01:00
bom
338cafc211 Validate correct branch in Release object
Avoids throwing exceptions in service and delegates validation to the
domain level
2023-03-02 14:59:06 +01:00
9bde301ee4 Use release class
Create it out of the given release_repo.
Thus simplifying the call tree as we only access the release_repo in the
service.
2023-02-28 15:04:14 +01:00
bom
ef51db1403 Fix some of the tests 2023-02-28 13:25:47 +01:00
975de636ed mob 2023-02-24 11:39:38 +01:00
bom
0551fe6bfe mob 2023-02-24 10:31:04 +01:00
74925a90b7 mob 2023-02-24 10:14:26 +01:00
bom
0cdf4b4c9c Update files for in project release testing
1. commit anything and include one release type
2. run `pyb release` in project root
3. check that release commit and version bump commit were added
4. reset with `git reset origin/main`
2023-02-23 16:34:22 +01:00
bom
4a23b0b800 Implement and use TagAndPushReleaseService 2023-02-23 15:33:34 +01:00
bom
fa6beebc4e Move commit logic to prepare_release_service 2023-02-23 15:15:29 +01:00
bom
1ce4bd9c55 Remove release_type as requirement for Version
Require it in functions that actually use it instead
2023-02-23 14:38:54 +01:00
99b8884d11 WIP implement prepare release service 2023-02-22 15:15:56 +01:00
821e06f82a Pass VersionRepo to InitReleaseService
Update Tests.
2023-02-22 11:33:44 +01:00
bom
167eec4620 Make services testable 2023-02-22 10:57:24 +01:00
f94d1879dc Implement release type calculation 2023-02-22 10:27:07 +01:00
bom
0f4899bf39 Fix typos in services.py 2023-02-22 09:59:16 +01:00
6883435248 Refactor for code consistency 2023-02-21 15:52:09 +01:00
c137344932 Implement bump release 2023-02-20 16:21:02 +01:00
fa7e10d3ce Implement creation of bump version 2023-02-20 15:50:58 +01:00
eb998cfdbb Implement creation of release version 2023-02-20 14:45:15 +01:00
ecdea88a6b Refactor version variable
Avoid ambiguous variable names.
We are handling a version list and a version string.
2023-02-20 13:47:14 +01:00
88c3acb73c WIP Create version repo in services with classmethod
The goal is to create a single version_repo object for each
file loaded. In that way we may avoid loading the file for loading
and writing.
2023-02-20 13:33:28 +01:00
38c7aa97ca Prepare services.py 2023-02-16 16:55:01 +01:00