Add MakeLatest parameter to support explicitly setting latest release#2594
Merged
gmlewis merged 3 commits intogoogle:masterfrom Dec 8, 2022
chrisgrautealium:make-latest
Merged
Add MakeLatest parameter to support explicitly setting latest release#2594gmlewis merged 3 commits intogoogle:masterfrom chrisgrautealium:make-latest
gmlewis merged 3 commits intogoogle:masterfrom
chrisgrautealium:make-latest
Conversation
GitHub recently changed the way the latest version can be managed, to allow explicitly setting the latest release. Previously, the latest release would be the most recently created non-pre-release. https://github.blog/changelog/2022-10-21-explicitly-set-the-latest-release/ In the web UI, this shows up as two checkboxes. In the API, this is set using the make_latest parameter, which defaults to true for newly created releases. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#update-a-release #2593
https://github.com/google/go-github/blob/153bbc2620f5693e42fb1ae5b80d86c611bc6727/CONTRIBUTING.md#submitting-a-patch Ran, ``` go generate github.com/google/go-github/... go test github.com/google/go-github/... go vet github.com/google/go-github/... ```
Codecov Report
@@ Coverage Diff @@
## master #2594 +/- ##
=======================================
Coverage 97.98% 97.99%
=======================================
Files 126 126
Lines 10895 10897 +2
=======================================
+ Hits 10676 10678 +2
Misses 150 150
Partials 69 69
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
gmlewis
requested changes
Dec 7, 2022
Collaborator
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @chrisgrautealium !
gmlewis
approved these changes
Dec 8, 2022
Collaborator
gmlewis
left a comment
There was a problem hiding this comment.
Thank you @chrisgrautealium !
LGTM.
Merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #2593
This adds support for the
make_latestparameter added to the GitHub repositories API for setting explicit releases.https://github.blog/changelog/2022-10-21-explicitly-set-the-latest-release/
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#update-a-release