| Conditions | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 3 | from . import info, note, error |
|
| 5 | 3 | def stage(version=None): |
|
| 6 | 3 | repository, release_type, proposed_version = status() |
|
| 7 | |||
| 8 | 3 | if not repository.changes_since_last_version: |
|
| 9 | 3 | error("There aren't any changes to release!") |
|
| 10 | 3 | return |
|
| 11 | |||
| 12 | # default to changes since last version |
||
| 13 | 3 | version = version if version else proposed_version |
|
| 14 | |||
| 15 | 3 | info('Staging [{}] release for version {}'.format( |
|
| 16 | release_type, |
||
| 17 | version |
||
| 18 | )) |
||
| 19 |