🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #234

Re: [gentoo-dev] [PATCH proj/dev2forge 0/2] codeberg: record the last processed PR for subsequent runs

#234
From: Sam James
Date: Tue, 01 Dec 2026 12:40
46 lines
2842 bytes
--=-=-=
Content-Type: text/plain

Thomas Bracht Laumann Jespersen <laumann@gentoo.org> writes:

> Instead of processing the entire history of pull requests every time
> we want to update the mapping from email -> codeberg handle, we write
> the number of the last processed request to a file.
>
> To ensure we don't miss any pull requests, we process them
> oldest-first and if processing fails in the middle, we simply record
> how far we got, so a subsequent run can pick up where it was
> left.
>

Looks OK, cc'd some people w/ possible opinions.

> Signed-off-by: Thomas Bracht Laumann Jespersen <laumann@gentoo.org>
> ---
> Thomas Bracht Laumann Jespersen (2):
>       codeberg: record last processed PR
>       codeberg: handle ConnectionError
>
>  codeberg/codebergapi.py            | 19 +++++++++++++++----
>  codeberg/update-pr-submitter-db.py | 28 ++++++++++++++++++++++++----
>  2 files changed, 39 insertions(+), 8 deletions(-)
> ---
> base-commit: b3975ba3df585264e6f54637f5a2ee226e2bc972
> change-id: 20261128-record-last-pr-4b1c9afab0e3
>
> Best regards,

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmsOv4UbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkByb
AP9vi0bcgdtwgWDCzFK8YDwVRMU0U7CX2Q4y1O7IOndl9wD+Jzi8qb62SW6D6ZPR
LSJ5jHKly4GAYe9xGt+796RkHws=
=I0lg
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID: <O5vjj-fkzg-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O4TnH-eYWU-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Sam James <sam@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: Re: [gentoo-dev] [PATCH proj/dev2forge 0/2] codeberg: record the  last processed PR for subsequent runs
Date: Tue, 01 Dec 2026 13:40:01 +0100
Message-ID: <O5vjj-fkzg-1@gated-at.bofh.it>
References: <O4TnH-eYWU-1@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
Organization: Gentoo
User-Agent: mu4e 1.14.4; emacs 32.0.50
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
Approved: robomod@news.nic.it
Lines: 46
Sender: robomod@news.nic.it
X-Original-Cc: Thomas Bracht Laumann Jespersen <laumann@gentoo.org>, Eli Schwartz
 <eschwartz@gentoo.org>, Joonas Niilola <juippis@gentoo.org>
X-Original-Date: Tue, 01 Dec 2026 12:37:25 +0000
X-Original-Message-ID: <87ld69p46y.fsf@gentoo.org>
X-Original-References: <20261129-record-last-pr-v1-0-653a93b26615@gentoo.org>