Skip to content

fix PR unable to create with grouped updates#7753

Merged
jakecoffman merged 6 commits intomainfrom
jakecoffman/fix-group-max-length
Aug 8, 2023
Merged

fix PR unable to create with grouped updates#7753
jakecoffman merged 6 commits intomainfrom
jakecoffman/fix-group-max-length

Conversation

@jakecoffman
Copy link
Copy Markdown
Member

@jakecoffman jakecoffman commented Aug 7, 2023

fixes #7743

We're seeing large updates that have large PR bodies fail to create on GitHub with a 422. I think this is due to this change moving the truncation from the PullRequestCreator.create to the MessageBuilder, and also we started recently using the MessageBuilder here in the DependencyChange class. It didn't get the new truncation settings passed in.

For now I copy-pasted the PullRequestCreator's new switch case to add in the limit to get PRs flowing again. This code seems like it could use a refactor.

@jakecoffman jakecoffman marked this pull request as ready for review August 7, 2023 19:09
@jakecoffman jakecoffman requested a review from a team as a code owner August 7, 2023 19:09
@jakecoffman
Copy link
Copy Markdown
Member Author

Actually this won't fix it because the dependabot-api appends additional data to the end of the message. I'll leave this open though, we might want to ship truncation at this level anyway as we're going to discard the additional message data either way. Might as well shed some sooner?

Copy link
Copy Markdown
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

I vote ship this as well because it provides a code tie-in to the other code here in core... ie, if someone is grep'ing for usages they'll see it's used in the updater/cloud/grouped updates work...

@jurre jurre force-pushed the jakecoffman/fix-group-max-length branch from f7f21c4 to bf35a85 Compare August 8, 2023 08:47
@jakecoffman jakecoffman merged commit 727ba26 into main Aug 8, 2023
@jakecoffman jakecoffman deleted the jakecoffman/fix-group-max-length branch August 8, 2023 18:20
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.

npm grouping never creates a PR, but creates a branch with commit

4 participants