mirror of https://github.com/harness/drone.git
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 methodpull/3597/head
parent
70a7743e87
commit
3496df5316
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue