Add generic changelog link for rattail/tailbone packages
i.e. production changelog, when not running from src
This commit is contained in:
parent
cbf3a9e939
commit
56910ea4c1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue