Add --minor-edit command-line flag

This commit is contained in:
Rolf Ahrenberg
2021-01-04 15:42:34 +02:00
parent f86dd2723a
commit 1d8e43add2
3 changed files with 8 additions and 3 deletions

View File

@@ -434,7 +434,7 @@ func (api *API) CreatePage(
}
func (api *API) UpdatePage(
page *PageInfo, newContent string, newLabels []string,
page *PageInfo, newContent string, minorEdit bool, newLabels []string,
) error {
nextPageVersion := page.Version.Number + 1
@@ -467,7 +467,7 @@ func (api *API) UpdatePage(
"title": page.Title,
"version": map[string]interface{}{
"number": nextPageVersion,
"minorEdit": false,
"minorEdit": minorEdit,
},
"ancestors": oldAncestors,
"body": map[string]interface{}{