Skip to content

Commit ad131d5

Browse files
committed
Copy updates
1 parent ff5caf4 commit ad131d5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

script/reviewer.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,21 @@ func (r *Reviewer) createComment(status Status) {
5353
title := ""
5454
body := ""
5555
details := fmt.Sprintf("<details>\n<summary>Application data...</summary>\n\n```json\n%s\n```\n</details>", r.application.GetData())
56+
// TODO: replace FILE_NAME with Application.FileName once available
57+
dataPath := fmt.Sprintf("https://github.com/1Password/1password-teams-open-source/blob/main/data/%s", "FILE_NAME")
5658

5759
if status == Closed {
58-
body = "Oops! This application is closed can no longer be processed. If this is an error, please reach out to [[email protected]](mailto:[email protected])."
60+
body = "This application is closed and changes will not be reviewed. If this is an error, contact us at [[email protected]](mailto:[email protected])."
5961
} else if status == Approved {
60-
body = "Oops! This application has been updated but has already been approved and can no longer be processed. If this is an error, please reach out to [[email protected]](mailto:[email protected])."
62+
body = fmt.Sprintf("This application has already been approved and changes will not be reviewed. If you would like to modify the details of your application, submit a pull request against the stored [application data](%s). If this is an error, contact us at [[email protected]](mailto:[email protected]).", dataPath)
6163
} else if status == Reviewing && r.application.IsValid() {
6264
title = "### 👍 Application still valid"
63-
body = fmt.Sprintf("\n\n%s\n\nWe've processed your updated application and everything still looks good.", details)
65+
body = fmt.Sprintf("\n\n%s\n\nWeve evaluated your updated application and it is still valid.", details)
6466
} else if r.application.IsValid() {
6567
title = "### ✅ Your application is valid"
66-
body = fmt.Sprintf("\n\n%s\n\nThanks for applying! Next step: our team will review your application and may have follow-up questions. You can still make changes to your application and we'll process it again.", details)
68+
body = fmt.Sprintf("\n\n%s\n\nThanks for applying! Next step: our team will review your application and may have follow-up questions. You can still make changes to your application and it’ll be re-evaluated.", details)
6769
} else {
68-
title = "### ❌ Your application needs some work"
70+
title = "### ❌ Your application is invalid"
6971
body = fmt.Sprintf("\n\n%s\n\nThe following issues need to be addressed:\n\n%s", details, r.application.RenderProblems())
7072
}
7173

0 commit comments

Comments
 (0)