🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #229

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

#229
From: Thomas Bracht Laumann Jespersen
Date: Sun, 29 Nov 2026 20:10
25 lines
2904 bytes
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.

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,
--  
Thomas Bracht Laumann Jespersen <laumann@gentoo.org>
Technical Details
Message-ID: <O4TnH-eYWU-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Thomas Bracht Laumann Jespersen <laumann@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH proj/dev2forge 0/2] codeberg: record the last processed PR for subsequent runs
Date: Sun, 29 Nov 2026 21:10:01 +0100
Message-ID: <O4TnH-eYWU-1@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
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: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXMQQqDMBBA0avIrDtgYhHtVUoXSRx1pJgwkxZBc
 vem7fIt/j9BSZgUbs0JQm9WjnuFuTQQVrcvhDxVg21tb4wdUChEmfDpNGMSvHoTRjc731IHNUp
 CMx+/4f3xt778RiF/L1DKB7BWwTZyAAAA
X-Change-ID: 20261128-record-last-pr-4b1c9afab0e3
X-Mailer: b4 0.16.0
X-Developer-Signature: v=1; a=openpgp-sha256; l=964; i=laumann@gentoo.org;
 h=from:subject:message-id; bh=JdXtLv0hcjsjaiDR+CnUcwZCJTwYPLqxTp3z1HH8RNU=;
 b=owGbwMvMwCWm/LstS/zLCmvG02pJDNk8bR5blopyXqzbddRfdun0vNbdsQdzBY+tsZg5PfOQ1
 WvnXRc3dXxkYRDjYpgppsiyesvKrovW4ieYDzLug5nDygQyRFqkgQEIWBj4chPzSo10jPRMtQ31
 DIEMHaN4iJweg0ZmcXFpapFuWkGRQ15+SWJJZn5esV5+QWpeQXqBXlpmWklGRn5RcSrQCL281BJ
 HJycTR0sLRxdDYydDc2cLA2NnQwNDJ1cjYzcnCzMzR0NzNxNHC2MnBi5OAZhrPh5h+KdY5XzHef
 KZl3tzW+Ykihi1awd0BcV6ajieN3FId9oQzcnIcEe53Eb1xeJNeSU+F/J4vd63RRqWqF08lvo1i
 fPG52QHTgA=
X-Developer-Key: i=laumann@gentoo.org; a=openpgp;
 fpr=94DC1AEB62B1E0B4FDC5DC3A85C9FB9C4405C282
Approved: robomod@news.nic.it
Lines: 25
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Thomas Bracht Laumann Jespersen <laumann@gentoo.org>
X-Original-Date: Sun, 29 Nov 2026 21:08:30 +0100
X-Original-Message-ID: <20261129-record-last-pr-v1-0-653a93b26615@gentoo.org>