Skip to content

Commit 670f3e4

Browse files
authored
Remove -draft flag from src campaigns crate (#217)
This is part of https://github.com/sourcegraph/sourcegraph/issues/10953 and is necessary after https://github.com/sourcegraph/sourcegraph/pull/11130 removed the draft option.
1 parent c7263dc commit 670f3e4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/src/campaigns_create.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Examples:
4848
descriptionFlag = flagSet.String("desc", "", "Description for the campaign in Markdown.")
4949
namespaceFlag = flagSet.String("namespace", "", "ID of the namespace under which to create the campaign. The namespace can be the GraphQL ID of a Sourcegraph user or organisation. If not specified, the ID of the authenticated user is queried and used. (Required)")
5050
patchsetIDFlag = flagSet.String("patchset", "", "ID of patch set the campaign should turn into changesets. If no patch set is specified, a campaign is created to which changesets can be added manually.")
51-
draftFlag = flagSet.Bool("draft", false, "Create the campaign as a draft (which won't create pull requests on code hosts)")
5251
branchFlag = flagSet.String("branch", "", "Name of the branch that will be created in each repository on the code host. Required for Sourcegraph >= 3.13 when 'patchset' is specified.")
5352

5453
changesetsFlag = flagSet.Int("changesets", 1000, "Returns the first n changesets per campaign.")
@@ -138,7 +137,6 @@ Examples:
138137
"description": description,
139138
"namespace": namespace,
140139
"patchSet": nullString(*patchsetIDFlag),
141-
"draft": *draftFlag,
142140
"branch": *branchFlag,
143141
}
144142

0 commit comments

Comments
 (0)