From fce871f3f4a67a5d48fb8910ce78e859acacac16 Mon Sep 17 00:00:00 2001 From: Evan Bonsignori Date: Tue, 2 Apr 2024 17:39:20 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andy Feller --- pkg/cmd/api/api.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/api/api.go b/pkg/cmd/api/api.go index 854aae661..c23458aff 100644 --- a/pkg/cmd/api/api.go +++ b/pkg/cmd/api/api.go @@ -143,8 +143,11 @@ func NewCmdApi(f *cmdutil.Factory, runF func(*ApiOptions) error) *cobra.Command '{{range .}}{{.title}} ({{.labels | pluck "name" | join ", " | color "yellow"}}){{"\n"}}{{end}}' # update allowed values of the "environment" custom property in a deeply nested array - gh api --PATCH /orgs/{org}/properties/schema -F 'properties[][property_name]=environment' -F 'properties[][default_value]=production' - -F 'properties[][allowed_values][]=staging' -F 'properties[][allowed_values][]=production' + gh api --PATCH /orgs/{org}/properties/schema \ + -F 'properties[][property_name]=environment' \ + -F 'properties[][default_value]=production' \ + -F 'properties[][allowed_values][]=staging' \ + -F 'properties[][allowed_values][]=production' # list releases with GraphQL $ gh api graphql -F owner='{owner}' -F name='{repo}' -f query='