From 8b656f6102ec4576d67eab12f89324bbb85a9759 Mon Sep 17 00:00:00 2001 From: "Ian Y. Choi" Date: Sat, 22 Feb 2025 15:25:28 +0900 Subject: [PATCH] Tag value handling for governance repo with note - Do not use "to-be-released" value used for election rendering page to refer to projects.yaml file on governance repo. Instead, render the link on the master branch. - Document the purpose of the tag value on README Change-Id: I8d6c72ccd0abf11131a98619f73de7b800935004 --- README.rst | 6 ++++++ doc/source/_exts/configuration.jinja | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index cf724da7..024c7cb2 100644 --- a/README.rst +++ b/README.rst @@ -36,6 +36,12 @@ As early as possible but at least a month before election starts: * ``edit configuration.yaml`` + .. note:: + + ``to-be-released`` tag value is used during the election process. + After the election is over, the tag value is updated + for ``openstack/governance`` repository. + * Prepare new election, e.g.: * ``tox -evenv -- create-directories`` diff --git a/doc/source/_exts/configuration.jinja b/doc/source/_exts/configuration.jinja index 906fa94b..664e3b9e 100644 --- a/doc/source/_exts/configuration.jinja +++ b/doc/source/_exts/configuration.jinja @@ -1,4 +1,8 @@ .. |Timeframe| replace:: {{ timeframe['name'] }} timeframe ({{ timeframe['start_str'] }} to {{ timeframe['end_str'] }}) .. |PreferredEmailDeadLine| replace:: {{ timeframe['email_deadline_str'] }} +{% if tag == 'to-be-released' %} +.. |Projects.yaml| replace:: https://opendev.org/openstack/governance/src/branch/master/reference/projects.yaml +{% else %} .. |Projects.yaml| replace:: https://opendev.org/openstack/governance/src/tag/{{ tag }}/reference/projects.yaml -.. |TCSeats| replace:: {{ tc_seats }} +{% endif %} +.. |TCSeats| replace:: {{ tc_seats }} \ No newline at end of file