7 Commits

Author SHA1 Message Date
Hervé Beraud
9c4f3c4303 Allow to consume projects without the openstack prefix
Change-Id: Idbf382d83a9af05b17b8def7154c7390b6a7a5b0
2020-10-06 11:46:09 +02:00
Hervé Beraud
d63b38783a Fix a bug on list_unreleased_changes during tag retrieving
Indeed `gitutils.gitutils.stable_branch_exists` is waiting for a branch
name not prefixed with `stable/`. This was not an issue with the
previous shell version. These changes fix that.

Without these changes the master branch will be analyzed and stable
branches will be ignored.

Change-Id: I61542508e8566eb797b0e304a6914d25e3b07e14
2020-07-27 22:04:08 +02:00
Hervé Beraud
85d8c3eb31 Add some whitespaces on helps to fix rendering.
Change-Id: I444fc8f48d5d17437814b7a31f7c5b90775e3543
2020-07-27 11:23:02 +02:00
Ben Nemec
d0bd6e76f3 Add newline between projects in std output format
Without this it is very difficult to visually distinguish between
the project outputs.

Change-Id: I452aa5500bda1bf607ba11baa92be3377945a4ab
2020-07-24 19:12:45 +02:00
Hervé Beraud
9e0b82d820 Fix list_unreleased_changes when repo doesn't exist or haven't been released
Indeed during my previous implementation of this script, I missed to handle
the cases where repo is not found or has not yet been released when users
ask for a standard output. For yaml and json is not an issue as we dump
raw dict at the asked format (json or yaml).

These changes fix that.

Also to stay closer of the previous implementation of this tools (the
shell version), these changes add:
- colored outputs
- compared revisions (even when no diff are found,
  like in the previous shell version).

Change-Id: I74f0f8c7071fbf2c8272fc002f28b793ff8e672d
2020-07-22 17:36:43 +02:00
Ben Nemec
1a08f4b439 Fix output format default in list_unreleased_changes
"standard" is not one of the valid values and it results in the
command erroring because no output is returned. The correct default
for this opt seems to be "std".

Change-Id: I7df3feb98877b2a846f7239fb741ae84e35b59d5
2020-07-21 15:36:02 +00:00
Hervé Beraud
4912f7d5d0 Allow list_unreleased_changes to format results at json & yaml formats
Rewrite list_unreleased_changes as python format and add new features.

By default it will behave as the previous version of this command (the
shell script).

Few new feature have been added in these changes to allow us to more
easily handle outputs in scripts.

Features added:
- allow user to retrieve results in json format
- allow user to retrieve results in yaml format
- allow user to ignore project not yet released

The shell script entry-point (tools) is still there but it will call
the python command in a venv instead of directly implement features.

Also the python version allow us to more surround this tools with unit tests.

Change-Id: Iaf86ecb1589c40102acb621b23ea12d71ed453bb
2020-07-07 19:07:25 +02:00