atomist / sdm-pack-issue

Extension Pack for an Atomist SDM to automatically manage issues
Apache License 2.0
0 stars 0 forks source link

Truncate review comments before creating issue #7

Closed ddgenome closed 5 years ago

ddgenome commented 5 years ago

If there are a lot of review comments, the GitHub API will reject the POST to create the issue with a 422 because the payload is too large. I do not know what the size limit is, but only including the first 20 or so review comments in the issue is probably sufficient to get the idea across.

ddgenome commented 5 years ago

It turns out the stated limit in the 422 error returned by the GitHub API is 65536 characters, although it seems like GitHub doesn't actually return 422 until the body is 2-3 times larger than that.

ddgenome commented 5 years ago

Fixed in 8f263ed5a22ded41346394ec96ba66723678f773