diff --git a/tailbone/views/upgrades.py b/tailbone/views/upgrades.py index de4cb164..db6e1ccf 100644 --- a/tailbone/views/upgrades.py +++ b/tailbone/views/upgrades.py @@ -249,10 +249,12 @@ class UpgradeView(MasterView): else: return 'https://rattailproject.org/trac/log/{}/?rev={}&stop_rev={}&limit=100'.format( projects[project], new_version, old_version) + elif re.match(r'^\d+\.\d+\.\d+$', new_version): + return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst?rev=v{}'.format( + projects[project], new_version) else: - # TODO: use changelog from latest docs - # return 'https://rattailproject.org/buildbot/docs/{}/changelog.html'.format(projects[project]) - pass + return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst'.format( + projects[project]) def render_diff_field(self, field, diff): old_version = diff.old_value(field)