-
Notifications
You must be signed in to change notification settings - Fork 188
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
GitHub Release support #110
Comments
Go for it. Would love to have it. |
Yes that's my thinking too |
Similar to #110, I needed some functionality around releases. I didn't so much need functionality to publish a release, but I needed to retrieve the list of releases that we're published. So, this is just a function for Get-GitHubRelease.
This completes the required work to support the set of Releases API's. It adds the following functions: * `New-GitHubRelease` * `Set-GitHubRelease` * `Remove-GitHubRelease` * `Get-GitHubReleaseAsset` * `New-GitHubReleaseAsset` * `Set-GitHubReleaseAsset` * `Remove-GitHubReleaseAsset` `Invoke-GHRestMethod` has been updated to be able to upload a file (via the new `InFile` parameter) and download a file (via the `Save` switch which will cause it to return back a `FileInfo` object of a temporary file which can then be renamed as seen fit by the caller). This also adds formatters for `GitHub.Release` and `GitHub.ReleaseAsset`. Positional Binding has been set as `false` for the three functions, and `Position` attributes added to the function's mandatory parameters. Reference: [GitHub Releases](https://developer.github.com/v3/repos/releases/) Fixes #47 Fixes #110
I wrote some PowerShell to publish a GitHub release recently (here) and was wondering if you would like it? It needs changing to work with the conventions of this module, of course, but with some guidance I can do that.
Let me know if you're interested. I haven't exposed any other GitHub Release API support, but could relatively easily.
The text was updated successfully, but these errors were encountered: