This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -305,10 +305,12 @@ function CommitDecorator(props: CommitDecoratorProps): JSX.Element {
305
305
const tag = ( props . commit . sha === props . currentDeployment ?. sha ) ?
306
306
< AntdTag color = "success" > { props . currentDeployment . env } </ AntdTag > :
307
307
null
308
+
309
+ const [ line ] = props . commit . message . split ( / ( \r \n | \n | \r ) / g, 1 )
308
310
309
311
return (
310
312
< span >
311
- < Text className = "gitploy-code" code > { props . commit . sha . substring ( 0 , 7 ) } </ Text > { tag } - < Text strong > { props . commit . message } </ Text > < br />
313
+ < Text className = "gitploy-code" code > { props . commit . sha . substring ( 0 , 7 ) } </ Text > { tag } - < Text strong > { line } </ Text > < br />
312
314
{ ( props . commit ?. author ) ?
313
315
< span >
314
316
< Text > < Avatar size = "small" src = { props . commit . author . avatarUrl } /> { props . commit . author . login } </ Text > < Text > committed { moment ( props . commit . author ?. date ) . fromNow ( ) } </ Text >
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ export default function DeploymentStatusSteps(props: DeploymentStatusStepsProps)
22
22
< Steps
23
23
current = { props . deployment . statuses . length - 1 }
24
24
size = "small"
25
- responsive >
25
+ responsive
26
+ >
26
27
{ props . deployment . statuses . map ( ( status , idx ) => {
27
28
const title = ( status . logUrl ) ?
28
29
< a href = { status . logUrl } > { status . status } </ a > :
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export default function DeploymentView(): JSX.Element {
183
183
null }
184
184
< Divider />
185
185
</ Col >
186
- < Col xs = { { span : 24 } } md = { { span : 18 } } >
186
+ < Col xs = { { span : 24 } } md = { ( deployment . isApprovalEanbled ) ? { span : 18 } : { span : 21 } } >
187
187
< DeployConfirm
188
188
isDeployable = { isDeployable ( deployment , approvals ) }
189
189
deploying = { RequestStatus . Pending === deploying }
You can’t perform that action at this time.
0 commit comments