telia-oss / github-pr-resource

Github pull request resource for Concourse
MIT License
182 stars 5 forks source link

Body is too long (maximum is 65536 characters) #259

Open ktreptow opened 3 years ago

ktreptow commented 3 years ago

Hi everyone! I'm currently experiencing the following problem while trying to comment on a pr.

put failed: failed to post comment: POST https://.../1731/comments: 422 Validation Failed [{Resource:IssueComment Field:data Code:unprocessable Message:Body is too long (maximum is 65536 characters)}]

Is there any way to either shorten the message or increase the maximum character number? Thanks!

rickardl commented 3 years ago

The errors are from the GitHub API itself, not sure if it's really viable to truncate it for people, do you expect this resource to slice it up into chunks of comments?

v-yarotsky commented 2 years ago

Perhaps the resource could upload a snippet and post a comment with the link, e.g. https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files

bgandon commented 6 months ago

Unfortunately, there is no hope that you get any further support here (#246 was 2+y ago).

But recent news is that the Cloud Foundry community is now maintaining a fork of this resource at cloudfoundry-community/github-pr-resource.

On our Concourse installation at Gstack, that one is working fine. Could you give a try and provide feedback there?

_(the new resource is a drop-in replacement; you only have to switch telia-ossto cfcommunity in in the resource_types: declaration, i.e. specify repository: cfcommunity/github-pr-resource)_