platform(gitlab): comment length not truncated #30551
Labels
platform:gitlab
GitLab Platform
priority-4-low
Low priority, unlikely to be done unless it becomes important to more people
type:bug
Bug fix of existing functionality
Discussed in #30508
Originally posted by henry-fn August 1, 2024
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab
Please tell us more about your question or problem
Essentially #7775 has come back after some refactors. I think that we need a call to smartTruncate around here
renovate/lib/modules/platform/gitlab/index.ts
Line 1405 in ad7b3ce
So you could add a line like
body = smartTruncate(body, maxBodyLength());
smartTruncate
is already called inensureIssue
but not inensureComment
. I think this was just an oversight but it does cause renovate to sometimes crash for us in mysterious ways to our internal users until we inspect the underlying renovate logs.Logs (if relevant)
Logs
The text was updated successfully, but these errors were encountered: