Apply suggestions from code review

Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
Evan Bonsignori 2024-04-02 17:39:20 -07:00 committed by GitHub
parent 3c3bed779f
commit fce871f3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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='