Thomas Bracht Laumann Jespersen <laum…@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 <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,