-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MAINT]: {origin}
in asset upload seems dubious
#505
Comments
It's a special case. You can see in the docs that the domain for uploading assets is
|
Thanks! That clarifies it. The |
If you set const uploaded_asset: UploadAssetResp = await octokit.request({
...repo(),
method: 'POST',
url: release.data.upload_url,
release_id: release.data.id,
name: asset_name,
data: file_bytes,
headers: {
'content-type': 'binary/octet-stream',
'content-length': file_size
}
}) The |
@gr2m thanks! Is the |
Describe the need
See https://github.com/octokit/types.ts/blob/main/src/generated/Endpoints.ts#L5211
If I follow to the documentation link https://docs.github.com/rest/reference/repos#upload-a-release-asset
the
{origin}
path segment is not mentioned at all.Also there are no other URL templates with such a segment.
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: