Skip to content

Commit b2db21c

Browse files
moritzheiberSamMorrowDrums
authored andcommitted
Fix GraphQL call using the wrong case for method derivation
1 parent d42bb3e commit b2db21c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/github/projects.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ func createIterationField(ctx context.Context, gqlClient *githubv4.Client, owner
15831583
ID string
15841584
Name string
15851585
} `graphql:"... on ProjectV2IterationField"`
1586-
}
1586+
} `graphql:"projectV2Field"`
15871587
} `graphql:"createProjectV2Field(input: $input)"`
15881588
}
15891589

@@ -1616,7 +1616,7 @@ func createIterationField(ctx context.Context, gqlClient *githubv4.Client, owner
16161616
}
16171617
}
16181618
} `graphql:"... on ProjectV2IterationField"`
1619-
}
1619+
} `graphql:"projectV2Field"`
16201620
} `graphql:"updateProjectV2Field(input: $input)"`
16211621
}
16221622

pkg/github/projects_v2_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func createFieldMatcher() githubv4mock.Matcher {
174174
ID string
175175
Name string
176176
} `graphql:"... on ProjectV2IterationField"`
177-
}
177+
} `graphql:"projectV2Field"`
178178
} `graphql:"createProjectV2Field(input: $input)"`
179179
}{},
180180
githubv4.CreateProjectV2FieldInput{
@@ -242,7 +242,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) {
242242
}
243243
}
244244
} `graphql:"... on ProjectV2IterationField"`
245-
}
245+
} `graphql:"projectV2Field"`
246246
} `graphql:"updateProjectV2Field(input: $input)"`
247247
}{},
248248
UpdateProjectV2FieldInput{
@@ -319,7 +319,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) {
319319
}
320320
}
321321
} `graphql:"... on ProjectV2IterationField"`
322-
}
322+
} `graphql:"projectV2Field"`
323323
} `graphql:"updateProjectV2Field(input: $input)"`
324324
}{},
325325
UpdateProjectV2FieldInput{
@@ -403,7 +403,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) {
403403
}
404404
}
405405
} `graphql:"... on ProjectV2IterationField"`
406-
}
406+
} `graphql:"projectV2Field"`
407407
} `graphql:"updateProjectV2Field(input: $input)"`
408408
}{},
409409
UpdateProjectV2FieldInput{

0 commit comments

Comments
 (0)