Skip to content

Handling too long comment #986

Discussion options

You must be logged in to vote

You referred to the package pkg/comment, but this package was removed at v4.5.0.

At v4.5.0, how to handle too long comment was changed.

github-comment v4.5.0 and below posted a comment with a normal template first, and if it failed to post a comment github-comment posted a comment with BodyForTooLong.
I think this is what you suggested.

On the other hand, github-comment v4.5.0 and above checks the length of a normal template first, and if the comment is longer than threshold 65536, github-comment posts a comment with BodyForTooLong.

Which approach appears to be more effective?

The advantage of the latter is to decrease the useless API call.
But if the validation is incorrect, I t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@suzuki-shunsuke
Comment options

Answer selected by hiro-o918
@hiro-o918
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants