dependabot-core
dependabot-core copied to clipboard
Fixes: Fixes issue when Dependabot generates a PR commit message that is longer than 65536 chars.
https://github.com/dependabot/dependabot-core/issues/8972 - Fixes issue when Dependabot generates a PR commit message that is longer than 65536 chars. Dependabot appends supplement information to PR commit message (dependnabot signature and message truncate confirmation information). In upper limit edge cases, this results in hitting max limit of 65536 characters. This causes dependabot to raise PR request with error 'Enabling auto-merge failed. Commit message is too long'. A buffer of 1k (1024) characters is a safe limit that provides enough space to provide supplement information without hitting the max ceiling limit. The message is trimmed at length 64512 (65536 - 1024) which leaves 1024 chars as a buffer to add additional information in Git PR commit message.
@sachin-sandhu can you add a more descriptive title
According to the error message I got earlier, the maximum length was 16,383 not 65,535. Please see screenshot below. I wonder if this recently changed?
Closing pull request