Skip to content

Commit 80041e4

Browse files
committed
fix broken query to get project fields
1 parent 85ee4de commit 80041e4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkg/github/projects.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package github
22

33
import (
44
"context"
5+
56
"github.com/github/github-mcp-server/pkg/translations"
67
"github.com/go-viper/mapstructure/v2"
78
"github.com/mark3labs/mcp-go/mcp"
@@ -119,10 +120,12 @@ func GetProjectFields(getClient GetGQLClientFn, t translations.TranslationHelper
119120
Project struct {
120121
Fields struct {
121122
Nodes []struct {
122-
ID githubv4.ID
123-
Name githubv4.String
124-
DataType githubv4.String
125-
}
123+
ProjectV2Field struct {
124+
ID githubv4.ID
125+
Name githubv4.String
126+
DataType githubv4.String
127+
} `graphql:"... on ProjectV2Field"`
128+
}
126129
} `graphql:"fields(first: 100)"`
127130
} `graphql:"projectV2(number: $number)"`
128131
} `graphql:"organization(login: $login)"`

0 commit comments

Comments
 (0)