corymhall / cdk-diff-action

GitHub action to post CDK diff to PR comments
Apache License 2.0
40 stars 6 forks source link

Fails with error "Body is too long" for apps with many stacks/stages #32

Closed mrgrain closed 9 months ago

mrgrain commented 9 months ago

Hi @corymhall , I tried using this action on a private repo with many stacks to replace a different (but worse) diff tool. You know which repo. It has a lot of stacks and it seems like this causes the action to fail with the following error:

Error commenting stages:  RequestError [HttpError]: Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}

Maybe an option to have a comment per stack? Or do some clever magic to shorten the body?

corymhall commented 9 months ago

Hey @mrgrain! I'll probably start with trying to split the comments per stack.

mrgrain commented 9 months ago

Splitting works great! You are a hero! Came across another size issue #34 for new stacks.