From 3e71d65f6153ed5f4983f578eee2fc14ccb4d87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Fri, 13 Mar 2026 01:28:24 +0100 Subject: [PATCH] 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> --- confluence/api.go | 2 +- mark.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/confluence/api.go b/confluence/api.go index 40d11c8..d4cee6c 100644 --- a/confluence/api.go +++ b/confluence/api.go @@ -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{}{} diff --git a/mark.go b/mark.go index cb8882f..91359c8 100644 --- a/mark.go +++ b/mark.go @@ -412,7 +412,6 @@ func ProcessFile(file string, api *confluence.API, config Config) (*confluence.P html, config.MinorEdit, finalVersionMessage, - labels, contentAppearance, emoji, )