add reno semver-next to the list-changes output

Use `reno semver-next` to check the proposed version against the types
of changes described in the release notes.

Change-Id: I9ac52ff524440670366ebeceb11dc04a446e876c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2020-09-03 08:34:49 -04:00
parent 2ffb2ce6a2
commit 6fe3672660
No known key found for this signature in database
GPG Key ID: 3B6D06A0C428437A
2 changed files with 12 additions and 1 deletions

View File

@ -428,6 +428,17 @@ def main():
except subprocess.CalledProcessError as e:
print('WARNING: Could not run git describe: %s' % e)
header('reno SemVer suggestion')
print('\n(This may produce an old tag version if no release notes were added.\n')
print('\nreno -q semver-next\n')
try:
subprocess.check_call(
['reno', '-q', 'semver-next'],
cwd=os.path.join(workdir, project.repo.name),
)
except subprocess.CalledProcessError as e:
print('WARNING: Could not run reno semver-next: %s' % e)
git_show(
workdir=workdir,
repo=project.repo.name,

View File

@ -25,7 +25,7 @@ tenacity>=6.1.0
# For release notes generation.
Jinja2>=2.6 # BSD License (3 clause)
parawrap
reno>=2.0.0
reno>=3.2.0
sphinx>=1.6.2 # BSD
pyfiglet>=0.7.5