set azure devops max comment characters to api limit (#1585)

This commit is contained in:
Marius Hennecke
2021-06-23 01:31:01 +02:00
committed by GitHub
parent b6b60aab2c
commit b9802f71a4

View File

@@ -104,7 +104,7 @@ func (g *AzureDevopsClient) CreateComment(repo models.Repo, pullNum int, comment
// maxCommentLength is the maximum number of chars allowed in a single comment
// This length was copied from the Github client - haven't found documentation
// or tested limit in Azure DevOps.
const maxCommentLength = 65536
const maxCommentLength = 150000
comments := common.SplitComment(comment, maxCommentLength, sepEnd, sepStart)
owner, project, repoName := SplitAzureDevopsRepoFullName(repo.FullName)