Fix query for project item status field (#8332)

This commit is contained in:
Sam Coe 2023-11-14 17:27:50 +01:00 committed by GitHub
parent 5e14987d65
commit 3f37d7e372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,9 +107,9 @@ type ProjectV2Item struct {
Title string `json:"title"`
}
Status struct {
OptionID string `json:"optionId"`
Name string `json:"name"`
}
OptionID string `json:"optionId" graphql:"... on ProjectV2ItemFieldSingleSelectValue{optionId}"`
Name string `json:"name" graphql:"... on ProjectV2ItemFieldSingleSelectValue{name}"`
} `graphql:"status:fieldValueByName(name: \"Status\")"`
}
func (p ProjectCards) ProjectNames() []string {