@@ -172,7 +172,7 @@ type projectQueryBase struct {
172172 Fields ProjectFields `graphql:"fields(first: $firstFields, after: $afterFields)"`
173173}
174174
175- type projectQueryWithItemsQuery struct {
175+ type projectQueryWithQueryableItems struct {
176176 projectQueryBase
177177 Items struct {
178178 PageInfo PageInfo
@@ -181,7 +181,7 @@ type projectQueryWithItemsQuery struct {
181181 } `graphql:"items(first: $firstItems, after: $afterItems, query: $query)"`
182182}
183183
184- type projectQueryWithoutItemsQuery struct {
184+ type projectQueryWithoutQueryableItems struct {
185185 projectQueryBase
186186 Items struct {
187187 PageInfo PageInfo
@@ -208,15 +208,15 @@ func newProjectFromQueryBase(source projectQueryBase) *Project {
208208 return project
209209}
210210
211- func newProjectFromQueryWithItemsQuery (source projectQueryWithItemsQuery ) * Project {
211+ func newProjectFromQueryWithItemsQuery (source projectQueryWithQueryableItems ) * Project {
212212 project := newProjectFromQueryBase (source .projectQueryBase )
213213 project .Items .PageInfo = source .Items .PageInfo
214214 project .Items .TotalCount = source .Items .TotalCount
215215 project .Items .Nodes = source .Items .Nodes
216216 return project
217217}
218218
219- func newProjectFromQueryWithoutItemsQuery (source projectQueryWithoutItemsQuery ) * Project {
219+ func newProjectFromQueryWithoutItemsQuery (source projectQueryWithoutQueryableItems ) * Project {
220220 project := newProjectFromQueryBase (source .projectQueryBase )
221221 project .Items .PageInfo = source .Items .PageInfo
222222 project .Items .TotalCount = source .Items .TotalCount
@@ -1039,16 +1039,16 @@ type viewerLoginOrgs struct {
10391039}
10401040
10411041type ownerWithLogin struct {
1042- Project projectQueryWithoutItemsQuery `graphql:"projectV2(number: $number)"`
1042+ Project projectQueryWithoutQueryableItems `graphql:"projectV2(number: $number)"`
10431043 Login string
10441044}
10451045
10461046type ownerWithProjectWithItemQuery struct {
1047- Project projectQueryWithItemsQuery `graphql:"projectV2(number: $number)"`
1047+ Project projectQueryWithQueryableItems `graphql:"projectV2(number: $number)"`
10481048}
10491049
10501050type ownerWithProjectWithoutItemQuery struct {
1051- Project projectQueryWithoutItemsQuery `graphql:"projectV2(number: $number)"`
1051+ Project projectQueryWithoutQueryableItems `graphql:"projectV2(number: $number)"`
10521052}
10531053
10541054// userOwner is used to query the project of a user.
@@ -1214,7 +1214,7 @@ type userProjects struct {
12141214 Projects struct {
12151215 TotalCount int
12161216 PageInfo PageInfo
1217- Nodes []projectQueryWithoutItemsQuery
1217+ Nodes []projectQueryWithoutQueryableItems
12181218 } `graphql:"projectsV2(first: $first, after: $after)"`
12191219 Login string
12201220 } `graphql:"user(login: $login)"`
@@ -1226,7 +1226,7 @@ type orgProjects struct {
12261226 Projects struct {
12271227 TotalCount int
12281228 PageInfo PageInfo
1229- Nodes []projectQueryWithoutItemsQuery
1229+ Nodes []projectQueryWithoutQueryableItems
12301230 } `graphql:"projectsV2(first: $first, after: $after)"`
12311231 Login string
12321232 } `graphql:"organization(login: $login)"`
@@ -1238,7 +1238,7 @@ type viewerProjects struct {
12381238 Projects struct {
12391239 TotalCount int
12401240 PageInfo PageInfo
1241- Nodes []projectQueryWithoutItemsQuery
1241+ Nodes []projectQueryWithoutQueryableItems
12421242 } `graphql:"projectsV2(first: $first, after: $after)"`
12431243 Login string
12441244 } `graphql:"viewer"`
0 commit comments