fix: [CODE-2899]: list only first 1000 chars in commit description for Squash & Merge method (#3116)

* 

fix: [CODE-2899]: list only first 1000 chars in commit description for Squash & Merge method
pull/3597/head
Ritik Kapoor 2024-12-05 18:23:33 +00:00 committed by Harness
parent 70a7743e87
commit 3496df5316
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ export const PullRequestActionsBox: React.FC<PullRequestActionsBoxProps> = ({
}
return {
commitTitle: messageTitle,
commitMessage: mergeOption.method === MergeStrategy.SQUASH ? messageString : ''
commitMessage: mergeOption.method === MergeStrategy.SQUASH ? messageString.slice(0, 1000) : ''
} // eslint-disable-next-line react-hooks/exhaustive-deps
}, [pullReqCommits, mergeOption, pullReqMetadata])