From: "cron2 (Code Review)" Date: Wed, 17 Sep 2025 09:34:32 +0000 References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <004e85915ef06e2f585b5ed53a9d229ad84ec357-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Ov2Xk8nJkek="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit mes... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --Ov2Xk8nJkek= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=3Demail to review the following change. Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the = commit message ...................................................................... dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format. So, enhance this dev-tool script to do this automatically. Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5 Signed-off-by: Gert Doering --- M dev-tools/gerrit-send-mail.py 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/1196/1 diff --git a/dev-tools/gerrit-send-mail.py b/dev-tools/gerrit-send-mail.py index 0b49ae9..e412d10 100755 --- a/dev-tools/gerrit-send-mail.py +++ b/dev-tools/gerrit-send-mail.py @@ -99,19 +99,21 @@ assert comment_start > signed_off_end acked_by_text =3D "" acked_by_names =3D "" + gerrit_url =3D f"{args.url}/c/{details['project']}/+/{args.changeid}" for ack in details["acked_by"]: acked_by_text +=3D f"Acked-by: {ack}\n" acked_by_names +=3D f"{ack}\n" patch_text_mod =3D ( patch_text[:signed_off_end] + signed_off_text - + acked_by_text + + acked_by_text + + f"Gerrit URL: {gerrit_url}\n" + patch_text[signed_off_end:comment_start] + f""" This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to {details["target"]}. -Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid} +Gerrit URL: {gerrit_url} This mail reflects revision {details["revision"]} of this Change. {signed_off_comment} Acked-by according to Gerrit (reflected above): -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5 Gerrit-Change-Number: 1196 Gerrit-PatchSet: 1 Gerrit-Owner: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --Ov2Xk8nJkek= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

cron2 would like plaisthos and flichtenheld to review t= his change.

V= iew Change

dev-tools/gerrit-send-mail.py: include Gerrit URL into the c=
ommit message

We used to reference to one of the mailing list archiv= es as the formal
reference for the patch and the review discussions. Wi= th the problematic
reliability of the archives, I've started to manu= ally add the URLs in
the OpenVPN Gerrit to the commits because they give= a better reference
and (usually) all the feedback is there in a useful = format.

So, enhance this dev-tool script to do this automatically.
Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Signed-off-by= : Gert Doering <gert@...1296...>
---
M dev-tools/gerrit-send-ma= il.py
1 file changed, 4 insertions(+), 2 deletions(-)

git pull=
 ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/1196/1
diff=
 --git a/dev-tools/gerrit-send-mail.py b/dev-tools/gerrit-send-mail.py
index 0b49ae9..e412d10 100755
--- a/dev-tools/g= errit-send-mail.py
+++ b/dev-tools/gerrit-send-mail.py
@@ -99,19 +99,21 @@
assert comment_start &= gt; signed_off_end
acked_by_text =3D ""
acked_by_names =3D ""
+ gerrit_url =3D f"{args.url}/c/{detail= s['project']}/+/{args.changeid}"
for ack = in details["acked_by"]:
acked_by_text += =3D f"Acked-by: {ack}\n"
acked_by_names = +=3D f"{ack}\n"
patch_text_mod =3D (<= br> patch_text[:signed_off_end]
+ si= gned_off_text
- = + acked_by_text
+ = + acked_by_text
= + + f"Gerrit URL: {gerrit_url}\n"
+ patc= h_text[signed_off_end:comment_start]
+ f"&quo= t;"
This change was reviewed on Gerrit and approved b= y at least one
developer. I request to merge it to {detail= s["target"]}.

-Gerrit URL: {args.url}/c/{details["project"]}= /+/{args.changeid}
+G= errit URL: {gerrit_url}
This mail reflects revision {detai= ls["revision"]} of this Change.
{signed_off_comm= ent}
Acked-by according to Gerrit (reflected above):

To view, visit change 1196. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34= 978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <gert@...1296...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--Ov2Xk8nJkek=--