nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: ctreminiom/go-atlassian
Pull request #248 (2023-10-06 21:38:59)

Fixes ctreminiom#247 : type mismatch on SpaceID in PageCreatePayloadScheme


Patch:
diff --git a/pkg/infra/models/confluence_page.go b/pkg/infra/models/confluence_page.go
index 2011666..1fb40cc 100644
--- a/pkg/infra/models/confluence_page.go
+++ b/pkg/infra/models/confluence_page.go
@@ -46,7 +46,7 @@ type PageBodyScheme struct {
 }
 
 type PageCreatePayloadScheme struct {
-	SpaceID int                           `json:"spaceId,omitempty"`
+	SpaceID string                        `json:"spaceId,omitempty"`
 	Status  string                        `json:"status,omitempty"`
 	Title   string                        `json:"title,omitempty"`
 	Body    *PageBodyRepresentationScheme `json:"body,omitempty"`


Test patch:
diff --git a/confluence/internal/page_impl_test.go b/confluence/internal/page_impl_test.go
index 08dd4f7..5953c05 100644
--- a/confluence/internal/page_impl_test.go
+++ b/confluence/internal/page_impl_test.go
@@ -718,7 +718,7 @@ func Test_internalPageImpl_Create(t *testing.T) {
 	}
 
 	mockedPayload := &model.PageCreatePayloadScheme{
-		SpaceID: 203718658,
+		SpaceID: "203718658",
 		Status:  "current",
 		Title:   "Page create title test",
 		Body: &model.PageBodyRepresentationScheme{