Skip to content

fix(bat): retry org drafts Contents put on missing-sha 422 - #83

Merged
Interchouette merged 1 commit into
Interchouette-ITC:devfrom
Interchouette:fix/bat-contents-missing-sha
Sep 1, 2026
Merged

fix(bat): retry org drafts Contents put on missing-sha 422#83
Interchouette merged 1 commit into
Interchouette-ITC:devfrom
Interchouette:fix/bat-contents-missing-sha

Conversation

@Interchouette

Copy link
Copy Markdown
Member

Summary

  • Retry GitHub Contents API puts on 422 "sha" wasn't supplied" (org drafts mirror race on meta.toml), same loop as 409 stale SHA.
  • Propagate failed GET when resolving blob SHA instead of treating as missing file.

Test plan

  • make lint
  • contents_put_missing_sha + bat_fail_slack_names_org_drafts_missing_sha unit tests
  • /retry_bat DRAFT-20260901-000141 re-shipped after fix

Made with Cursor

GitHub 422 "sha wasn't supplied" aborted BAT when org drafts mirror
raced on meta.toml create. Re-fetch blob SHA and retry (same loop as 409
stale SHA); stop swallowing failed GETs as missing files.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Interchouette
Interchouette merged commit b051682 into Interchouette-ITC:dev Sep 1, 2026
1 check passed
@Interchouette
Interchouette deleted the fix/bat-contents-missing-sha branch September 1, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant