troubleshoot version reference
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-26 15:19:56 +11:00
parent 1d1376ee5f
commit 85a054fcc7

View File

@@ -328,6 +328,7 @@ func main() {
} }
// Connect to confluence // Connect to confluence
fmt.Printf("Connecting to confluence %s\n", *cURL)
api, err := goconfluence.NewAPI(*cURL, "", *cToken) api, err := goconfluence.NewAPI(*cURL, "", *cToken)
if err != nil { if err != nil {
@@ -355,6 +356,7 @@ func main() {
return return
} }
fmt.Printf("%+v\n", c) fmt.Printf("%+v\n", c)
fmt.Printf("Current version number : '%d'\n", c.Version.Number)
// Generate new content for confluence // Generate new content for confluence
@@ -376,7 +378,7 @@ func main() {
}, },
}, },
Version: &goconfluence.Version{ Version: &goconfluence.Version{
Number: c.Version.Number + 1, Number: 3,
}, },
Space: &goconfluence.Space{ Space: &goconfluence.Space{
Key: c.Space.Key, Key: c.Space.Key,