Skip to content

Conversation

@meorphis
Copy link
Member

@meorphis meorphis commented Aug 9, 2025

Summary

We've been running into issues where commitAndPush runs into a 422 from GitHub for some unknown reason (I wrote to their support and didn't hear back) and we leave the repo in a state where the release commit is missing. And then if/when we retry, the PR title does not match the manifest (because the release commit is missing) so we think that the user edited the PR title.

I tried to mitigate the latter problem with #212 but that caused more issues https://stainless-workspace.slack.com/archives/C06H02ZA5BM/p1754677699040689 so I'm reverting it here.

I've implemented a better fix: just fork next and add the release commit atomically rather than as two separate updates to the release branch.

Test Plan

I deployed this to staging and verified that it works as intended.

@meorphis meorphis requested a review from dgellow August 11, 2025 15:18
@meorphis meorphis changed the title fork base and add release commit atomically [APP-2111] fork base and add release commit atomically Aug 11, 2025
Copy link
Member

@dgellow dgellow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for digging into that issue, that's an annoying one :(

src/github.ts Outdated
'updated existing branch'
);
} catch (error) {
if (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we extract that check to a small function?

@meorphis meorphis merged commit 8ce53ee into main Aug 11, 2025
2 checks passed
@meorphis meorphis deleted the meorphis/commit-and-push branch August 11, 2025 15:44
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.

3 participants