troubleshoot version reference
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
main.go
4
main.go
@@ -328,6 +328,7 @@ func main() {
|
||||
}
|
||||
|
||||
// Connect to confluence
|
||||
fmt.Printf("Connecting to confluence %s\n", *cURL)
|
||||
api, err := goconfluence.NewAPI(*cURL, "", *cToken)
|
||||
|
||||
if err != nil {
|
||||
@@ -355,6 +356,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
fmt.Printf("%+v\n", c)
|
||||
fmt.Printf("Current version number : '%d'\n", c.Version.Number)
|
||||
|
||||
// Generate new content for confluence
|
||||
|
||||
@@ -376,7 +378,7 @@ func main() {
|
||||
},
|
||||
},
|
||||
Version: &goconfluence.Version{
|
||||
Number: c.Version.Number + 1,
|
||||
Number: 3,
|
||||
},
|
||||
Space: &goconfluence.Space{
|
||||
Key: c.Space.Key,
|
||||
|
Reference in New Issue
Block a user