Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset
What part(s) of the article would you like to see updated?
For the GitHub enterprise cloud below GH CLI is expecting the HOSTNAME while it should take the default as api.github.com.
# GitHub CLI api
# https://cli.github.com/manual/gh_api
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--hostname HOSTNAME \
/repos/OWNER/REPO/releases/RELEASE_ID/assets?name=example.zip \
-f '@example.zip'
Documentation shoudl explicity say why HOSTNAME parameter is used and why
I believe it should also only need to show when someone selects "Version: Enterprsie Server 3.x.x" Attached image for your reference.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset
What part(s) of the article would you like to see updated?
For the GitHub enterprise cloud below GH CLI is expecting the
HOSTNAMEwhile it should take the default asapi.github.com.Documentation shoudl explicity say why
HOSTNAMEparameter is used and whyI believe it should also only need to show when someone selects "Version: Enterprsie Server 3.x.x" Attached image for your reference.
Additional information
No response