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 <laum…@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 <laum…@gentoo.org>
[gentoo-dev] [PATCH proj/dev2forge 0/2] codeberg: record the last processed PR for subsequent runs
- From
- Thomas Bracht Laumann Jespersen <laum…@gentoo.org>
- Reply-To
- gent…@lists.gentoo.org
- Sender
- robo…@news.nic.it
- Organization
- linux.* mail to news gateway
- Message-ID
- <O4Tn…@gated-at.bofh.it>
- Date
- Newsgroups
- linux.gentoo.dev
Moderated This group is moderated.