Apply suggestions from code review
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
3c3bed779f
commit
fce871f3f4
1 changed files with 5 additions and 2 deletions
|
|
@ -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='
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue