dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

[FEAT]: Friendly API for uploading release assets

Open alexrp opened this issue 6 months ago • 2 comments

Describe the need

I might have missed it, but there doesn't appear to be a friendly API for uploading release assets. In Octokit, this was done like so:

var releaseApi = ghc.Repository.Release;
var release = await releaseApi.Get(...);
await releaseApi.UploadAsset(release, new ReleaseAssetUpload(zipFileName, MediaTypeNames.Application.Zip, stream, timeout));

It would be nice if Octokit.NET.SDK had something similar rather than requiring me to make a manual request using the Release.UploadUrl.

SDK Version

v0.0.3

API Version

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

alexrp avatar Jan 04 '24 03:01 alexrp