You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: apply retry at individual API call sites inside createTree #24
Follow-up from PR #23 review: commitViaAPI wraps the entire createTree(...) call in withRetry. createTree can perform many REST calls (createBlob, chained createTree). A retry after a mid-way transient failure re-runs the whole operation and can re-upload blobs/trees, increasing API usage and rate-limit pressure.
Proposal
Apply withRetry at individual Octokit REST call sites inside createTree and createTreeChained (or thread RetryConfig into helpers) instead of retrying the whole multi-call operation.
Tradeoffs
Pro: Finer-grained retries avoid redoing successful work after a failure late in the batch.
Con: Requires threading retry config through internal helpers and more surface area for tests.
Related
Copilot review comment on src/commit.ts (coarse createTree wrap)
Activity
refactor(commit): apply retry per REST call site in createTree (#34)
feat(commit): make createTree chunking payload-size aware (#35)
chore: release 0.3.0 (#78)