Skip to content

Commit 9aa4233

Browse files
authored
Merge pull request #316 from machadovilaca/add-more-runbook-sync-reviewers
2 parents 4337ee7 + dbc10b1 commit 9aa4233

File tree

1 file changed

+7
-4
lines changed
  • tools/runbook-sync-downstream

1 file changed

+7
-4
lines changed

tools/runbook-sync-downstream/main.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ var (
5858
downstreamRepositoryURL = fmt.Sprintf("github.com/%s/%s", downstreamRepositoryOwner, downstreamRepositoryName)
5959
forkedRepositoryURL = fmt.Sprintf("github.com/%s/%s", downstreamRepositoryFork, downstreamRepositoryName)
6060

61+
prReviewersUsernames = []string{"machadovilaca", "sradco", "avlitman", "jherrman"}
62+
prReviewersFmt = fmt.Sprintf("/cc @%s", strings.Join(prReviewersUsernames, " @"))
63+
6164
//go:embed templates/deprecated_runbook.tmpl
6265
deprecatedRunbookTemplate embed.FS
6366
)
@@ -173,8 +176,8 @@ func (rbSync *runbookSync) updateRunbook(rb runbook) string {
173176
"This is an automated PR by 'tools/openshift-virtualization-operator/runbook-sync'.\n\n"+
174177
"CNV runbook '%s' was updated in upstream https://%s at %s.\n"+
175178
"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,
178181
)
179182

180183
newPR, err := rbSync.createPR(branchName, commitMessage, body)
@@ -222,8 +225,8 @@ func (rbSync *runbookSync) deprecateRunbook(rb runbook) string {
222225
"This is an automated PR by 'tools/openshift-virtualization-operator/runbook-sync'.\n\n"+
223226
"CNV runbook '%s' was deprecated in upstream https://%s.\n"+
224227
"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,
227230
)
228231

229232
_, err = rbSync.createPR(branchName, commitMessage, body)

0 commit comments

Comments
 (0)