Match query fields with ProjectV2 type

Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
Babak K. Shandiz 2024-04-26 22:59:01 +01:00 committed by GitHub
parent b294f6b3e1
commit 985dee0e05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -489,7 +489,7 @@ func RepositoryGraphQL(fields []string) string {
case "projects":
q = append(q, "projects(first:100,states:OPEN){nodes{id,name,number,body,resourcePath}}")
case "projectsV2":
q = append(q, "projectsV2(first:100,query:\"is:open\"){nodes{id,number,title,readme,url}}")
q = append(q, "projectsV2(first:100,query:\"is:open\"){nodes{id,number,resourcePath,closed,url}}")
case "watchers":
q = append(q, "watchers{totalCount}")
case "issues":