From 4b019270a1ffeb1965503bd0e2f21059b569d052 Mon Sep 17 00:00:00 2001 From: shuntaka9576 Date: Thu, 21 Mar 2024 11:07:29 +0900 Subject: [PATCH] fix(ls): ls response object --- README.md | 2 +- p2_items.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"`