From 3f58edc65777f6a08d989ba7e4df2c7cb387d029 Mon Sep 17 00:00:00 2001 From: Moritz Heiber Date: Wed, 10 Jun 2026 12:36:51 +0200 Subject: [PATCH] Fix GraphQL call using the wrong case for method derivation --- pkg/github/projects.go | 4 ++-- pkg/github/projects_v2_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/github/projects.go b/pkg/github/projects.go index 53ce510516..d20fa3cc3e 100644 --- a/pkg/github/projects.go +++ b/pkg/github/projects.go @@ -1583,7 +1583,7 @@ func createIterationField(ctx context.Context, gqlClient *githubv4.Client, owner ID string Name string } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"createProjectV2Field(input: $input)"` } @@ -1616,7 +1616,7 @@ func createIterationField(ctx context.Context, gqlClient *githubv4.Client, owner } } } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"updateProjectV2Field(input: $input)"` } diff --git a/pkg/github/projects_v2_test.go b/pkg/github/projects_v2_test.go index 69d4d6395f..701e194767 100644 --- a/pkg/github/projects_v2_test.go +++ b/pkg/github/projects_v2_test.go @@ -174,7 +174,7 @@ func createFieldMatcher() githubv4mock.Matcher { ID string Name string } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"createProjectV2Field(input: $input)"` }{}, githubv4.CreateProjectV2FieldInput{ @@ -242,7 +242,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) { } } } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"updateProjectV2Field(input: $input)"` }{}, UpdateProjectV2FieldInput{ @@ -319,7 +319,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) { } } } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"updateProjectV2Field(input: $input)"` }{}, UpdateProjectV2FieldInput{ @@ -403,7 +403,7 @@ func Test_ProjectsWrite_CreateIterationField(t *testing.T) { } } } `graphql:"... on ProjectV2IterationField"` - } + } `graphql:"projectV2Field"` } `graphql:"updateProjectV2Field(input: $input)"` }{}, UpdateProjectV2FieldInput{