fix: remove unused newLabels parameter from UpdatePage

The newLabels parameter was accepted but never used in the function
body; labels are synced through the separate updateLabels/AddPageLabels
/DeletePageLabel calls. The dead parameter misled callers into thinking
labels were being set during the page update.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Manuel Rüger 2026-03-13 01:28:24 +01:00
parent 5b87945f23
commit 3e71d65f61
2 changed files with 1 additions and 2 deletions

View File

@ -534,7 +534,7 @@ func (api *API) CreatePage(
return request.Response.(*PageInfo), nil
}
func (api *API) UpdatePage(page *PageInfo, newContent string, minorEdit bool, versionMessage string, newLabels []string, appearance string, emojiString string) error {
func (api *API) UpdatePage(page *PageInfo, newContent string, minorEdit bool, versionMessage string, appearance string, emojiString string) error {
nextPageVersion := page.Version.Number + 1
oldAncestors := []map[string]interface{}{}

View File

@ -412,7 +412,6 @@ func ProcessFile(file string, api *confluence.API, config Config) (*confluence.P
html,
config.MinorEdit,
finalVersionMessage,
labels,
contentAppearance,
emoji,
)