You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/src/actions_exec.go
+64-29Lines changed: 64 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,8 @@ Format of the action JSON files:
148
148
createPatchSetFlag=flagSet.Bool("create-patchset", false, "Create a patch set from the produced set of patches. When the execution of the action fails in a single repository a prompt will ask to confirm or reject the patch set creation.")
149
149
forceCreatePatchSetFlag=flagSet.Bool("force-create-patchset", false, "Force creation of patch set from the produced set of patches, without asking for confirmation even when the execution of the action failed for a subset of repositories.")
150
150
151
+
includeUnsupportedFlag=flagSet.Bool("include-unsupported", false, "When specified, also repos from unsupported codehosts are processed. Those can be created once the integration is done.")
152
+
151
153
apiFlags=newAPIFlags(flagSet)
152
154
)
153
155
@@ -229,14 +231,11 @@ Format of the action JSON files:
229
231
230
232
// Query repos over which to run action
231
233
logger.Infof("Querying %s for repositories matching '%s'...\n", cfg.Endpoint, action.ScopeQuery)
matchesStr+=fmt.Sprintf(" (Including %d on unsupported code hosts.)", unsupportedCount)
563
+
}
564
+
} else {
565
+
ifunsupportedCount>0 {
566
+
matchesStr+=" (Some repositories were filtered out because their code host is not supported by campaigns. Use -include-unsupported to generate patches for them anyways.)"
567
+
}
568
+
}
569
+
logger.Infof("%s\n", matchesStr)
535
570
536
571
iflen(repos) ==0&&!*verbose {
537
572
yellow.Fprintf(os.Stderr, "WARNING: No repositories matched by scopeQuery\n")
Copy file name to clipboardExpand all lines: cmd/src/actions_scope_query.go
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ Examples:
31
31
}
32
32
33
33
var (
34
-
fileFlag=flagSet.String("f", "-", "The action file. If not given or '-' standard input is used. (Required)")
34
+
fileFlag=flagSet.String("f", "-", "The action file. If not given or '-' standard input is used. (Required)")
35
+
includeUnsupportedFlag=flagSet.Bool("include-unsupported", false, "When specified, also repos from unsupported codehosts are processed. Those can be created once the integration is done.")
35
36
)
36
37
37
38
handler:=func(args []string) error {
@@ -60,18 +61,17 @@ Examples:
60
61
61
62
if*verbose {
62
63
log.Printf("# scopeQuery in action definition: %s\n", action.ScopeQuery)
64
+
65
+
if*includeUnsupportedFlag {
66
+
log.Printf("# Including repositories on unsupported codehost.\n")
0 commit comments