|
58 | 58 | downstreamRepositoryURL = fmt.Sprintf("github.com/%s/%s", downstreamRepositoryOwner, downstreamRepositoryName) |
59 | 59 | forkedRepositoryURL = fmt.Sprintf("github.com/%s/%s", downstreamRepositoryFork, downstreamRepositoryName) |
60 | 60 |
|
| 61 | + prReviewersUsernames = []string{"machadovilaca", "sradco", "avlitman", "jherrman"} |
| 62 | + prReviewersFmt = fmt.Sprintf("/cc @%s", strings.Join(prReviewersUsernames, " @")) |
| 63 | + |
61 | 64 | //go:embed templates/deprecated_runbook.tmpl |
62 | 65 | deprecatedRunbookTemplate embed.FS |
63 | 66 | ) |
@@ -173,8 +176,8 @@ func (rbSync *runbookSync) updateRunbook(rb runbook) string { |
173 | 176 | "This is an automated PR by 'tools/openshift-virtualization-operator/runbook-sync'.\n\n"+ |
174 | 177 | "CNV runbook '%s' was updated in upstream https://%s at %s.\n"+ |
175 | 178 | "This PR syncs the runbook in this repository to contain all new added changes.\n\n"+ |
176 | | - "/cc @machadovilaca", |
177 | | - rb.name, upstreamRepositoryURL, rb.upstreamLastUpdated, |
| 179 | + "%s", |
| 180 | + rb.name, upstreamRepositoryURL, rb.upstreamLastUpdated, prReviewersFmt, |
178 | 181 | ) |
179 | 182 |
|
180 | 183 | newPR, err := rbSync.createPR(branchName, commitMessage, body) |
@@ -222,8 +225,8 @@ func (rbSync *runbookSync) deprecateRunbook(rb runbook) string { |
222 | 225 | "This is an automated PR by 'tools/openshift-virtualization-operator/runbook-sync'.\n\n"+ |
223 | 226 | "CNV runbook '%s' was deprecated in upstream https://%s.\n"+ |
224 | 227 | "This PR moves the runbook to the 'deprecate' subdirectory.\n\n"+ |
225 | | - "/cc @machadovilaca", |
226 | | - rb.name, upstreamRepositoryURL, |
| 228 | + "%s", |
| 229 | + rb.name, upstreamRepositoryURL, prReviewersFmt, |
227 | 230 | ) |
228 | 231 |
|
229 | 232 | _, err = rbSync.createPR(branchName, commitMessage, body) |
|
0 commit comments