boostorg / website-v2

New Boost website
https://boost.io
Boost Software License 1.0
8 stars 13 forks source link

Use non-beta version slug for fetching beta release notes #1450

Closed GregKaleka closed 6 days ago

GregKaleka commented 1 week ago

Release notes for beta releases are stored with the non-beta version number (e.g. release notes for version 1.87.0.beta1 will have a filename 1_87_0.adoc, not 1_87_0_beta1.adoc).

Manual testing in terminal


In [1]: from versions.releases import get_release_notes_for_version_github

In [2]: v = Version.objects.first()

In [3]: v.slug
Out[3]: 'boost-1-86-0'

In [4]: v.slug += "-beta1"

In [5]: v.save()

In [6]: content = get_release_notes_for_version_github(v.pk)

In [7]: content[:10]
Out[7]: b'<!DOCTYPE '