Skip to content

Commit

Permalink
fix time panic
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Dec 11, 2024
1 parent b6d379b commit ad8257b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/amplify-preview/amplify.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (amp *AmplifyPreview) StartJob(ctx context.Context, branch *types.Branch) (
return nil, err
}

logger.Info("Successfully started job", logKeyAppID, appID, logKeyBranchName, branch.BranchName, logKeyJobID, resp.JobSummary.JobId)
logger.Info("Successfully started job", logKeyAppID, appID, logKeyBranchName, *branch.BranchName, logKeyJobID, *resp.JobSummary.JobId)

return resp.JobSummary, nil

Expand Down Expand Up @@ -216,6 +216,9 @@ func amplifyJobToMarkdown(job *types.JobSummary, branch *types.Branch) string {
if job.EndTime != nil {
updateTime = job.EndTime
}
if updateTime == nil {
updateTime = branch.CreateTime
}

commentBody.WriteString(amplifyMarkdownHeader)
commentBody.WriteByte('\n')
Expand Down

0 comments on commit ad8257b

Please sign in to comment.