Closed Ben10k closed 5 months ago
Sounds good. I think we should only retry on 405s (and 5XX?), the rest doesn't seem relevant: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request
I agree. I'll start working on it in the upcoming weeks
Description
Sometimes GitHub rejects the api call to merge the PR.
Expected Behaviour
Failed PR should be retried a few (configurable) times with (preferably) an exponential delay. Failure could still be logged as a warning
Actual Behaviour
Leaves the PR open and logs this message:
Affected Version
v0.1.9
Steps to Reproduce
Run
telefonistka bump-regex --auto-merge ...
in a loop on the same repository.Checklist