Re: [docs] [PATCH] doc/setversions.py: add --get-latest-branch argument
Quentin Schulz <[email protected]>
| Newsgroups | org.openembedded.lists.bitbake-devel,org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
Hi Antonin, On 4/29/26 11:12 AM, Antonin Godard via lists.yoctoproject.org wrote: > Add a --get-latest-branch argument that can be used to show the latest > branch from the parsed releases.json file. This will be used by the > Autobuilder to know what the version of the default bitbake docs page > should be. > > Signed-off-by: Antonin Godard <[email protected]> > --- > Note: Companion patch on the yocto-autobuilder-helper repo will be sent > after this one. > --- > doc/setversions.py | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/doc/setversions.py b/doc/setversions.py > index f1aea0a4225..c4127bb43fd 100755 > --- a/doc/setversions.py > +++ b/doc/setversions.py > @@ -13,6 +13,7 @@ > # SPDX-License-Identifier: MIT > # > > +import argparse > import itertools > import json > import os > @@ -23,6 +24,15 @@ import textwrap > > from urllib.request import urlopen, URLError > > +parser = argparse.ArgumentParser( > + description="Parse https://dashboard.yoctoproject.org/releases.json to get current releases information" > +) > +parser.add_argument("--get-latest-branch", > + help="Get current latest branch", s/Get/Print/ +and exit. Cheers, Quentin