Skip to content

Commit b2ac793

Browse files
committed
fix query for user-level get_project_fields tool
1 parent 80041e4 commit b2ac793

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/github/projects.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ func GetProjectFields(getClient GetGQLClientFn, t translations.TranslationHelper
102102
Project struct {
103103
Fields struct {
104104
Nodes []struct {
105-
ID githubv4.ID
106-
Name githubv4.String
107-
DataType githubv4.String
108-
}
105+
ProjectV2Field struct {
106+
ID githubv4.ID
107+
Name githubv4.String
108+
DataType githubv4.String
109+
} `graphql:"... on ProjectV2Field"`
110+
}
109111
} `graphql:"fields(first: 100)"`
110112
} `graphql:"projectV2(number: $number)"`
111113
} `graphql:"user(login: $login)"`

0 commit comments

Comments
 (0)