Skip to content

Commit 5c303bb

Browse files
authored
feat(external-plugins/cherry-picker): add skip-fork flag to cherrypicker (#15)
options
1 parent 5447ef5 commit 5c303bb

File tree

1 file changed

+2
-0
lines changed
  • cmd/external-plugins/cherrypicker

1 file changed

+2
-0
lines changed

cmd/external-plugins/cherrypicker/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type options struct {
4848
prowAssignments bool
4949
allowAll bool
5050
issueOnConflict bool
51+
skipFork bool
5152
labelPrefix string
5253
}
5354

@@ -72,6 +73,7 @@ func gatherOptions() options {
7273
fs.BoolVar(&o.prowAssignments, "use-prow-assignments", true, "Use prow commands to assign cherrypicked PRs.")
7374
fs.BoolVar(&o.allowAll, "allow-all", false, "Allow anybody to use automated cherrypicks by skipping GitHub organization membership checks.")
7475
fs.BoolVar(&o.issueOnConflict, "create-issue-on-conflict", false, "Create a GitHub issue and assign it to the requestor on cherrypick conflict.")
76+
fs.BoolVar(&o.skipFork, "skip-fork", false, "Skip to create fork repository for cherrypicks.")
7577
fs.StringVar(&o.labelPrefix, "label-prefix", defaultLabelPrefix, "Set a custom label prefix.")
7678
for _, group := range []flagutil.OptionGroup{&o.github, &o.instrumentationOptions} {
7779
group.AddFlags(fs)

0 commit comments

Comments
 (0)