Skip to content

Commit d835d23

Browse files
committed
Add checkbox to update preview status
1 parent ad8257b commit d835d23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/amplify-preview/amplify.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (amp *AmplifyPreview) CreateBranch(ctx context.Context, branchName string)
116116
}
117117

118118
if resp != nil {
119-
logger.Info("Successfully created branch", logKeyAppID, appID, logKeyBranchName, resp.Branch.BranchName, logKeyJobID, resp.Branch.ActiveJobId)
119+
logger.Info("Successfully created branch", logKeyAppID, appID, logKeyBranchName, *resp.Branch.BranchName, logKeyJobID, resp.Branch.ActiveJobId)
120120
return resp.Branch, nil
121121
}
122122
}
@@ -134,7 +134,7 @@ func (amp *AmplifyPreview) StartJob(ctx context.Context, branch *types.Branch) (
134134
AppId: &appID,
135135
BranchName: branch.BranchName,
136136
JobType: types.JobTypeRelease,
137-
JobReason: aws.String("Initial job for PR-xxx"),
137+
JobReason: aws.String("Initial job from GHA"),
138138
})
139139

140140
if err != nil {
@@ -222,6 +222,8 @@ func amplifyJobToMarkdown(job *types.JobSummary, branch *types.Branch) string {
222222

223223
commentBody.WriteString(amplifyMarkdownHeader)
224224
commentBody.WriteByte('\n')
225+
commentBody.WriteString("- [ ] Check this box to update Preview status")
226+
commentBody.WriteByte('\n')
225227

226228
// Markdown table header
227229
commentBody.WriteString(strings.Join(mdTableHeader[:], " | "))

0 commit comments

Comments
 (0)