mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-19 04:31:11 +00:00
Add --minor-edit command-line flag
This commit is contained in:
@@ -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{}{
|
||||
|
||||
Reference in New Issue
Block a user