diff --git a/README.md b/README.md index cbe8dc0..05d15f5 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ List an issue in project. ```bash # To specify an organization, use -o instead of -u. gh p2 ls -u "ownerName" -p "project" |\ - jq -r '["type", "number", "title", "status", "url"], (.items[] |[.type, .number, .title, .singleFiledValues.Status, .url]) | @csv' + jq -r '["type", "number", "title", "status", "url"], (.items[] |[.type, .number, .title, .singleSelectValues.Status, .url]) | @csv' ``` Stdout diff --git a/p2_items.go b/p2_items.go index 3d39262..de886a3 100644 --- a/p2_items.go +++ b/p2_items.go @@ -54,7 +54,7 @@ type GetProjectItemsRes struct { type IssueItem struct { Title string `json:"title"` - SingleSelectValues map[string]string `json:"singleFiledValues"` + SingleSelectValues map[string]string `json:"singleSelectValues"` ItemType gh.ITEM_TYPE `json:"type"` Body string `json:"body"` URL string `json:"url"`