Skip to content
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

Add MakeLatest parameter to support explicitly setting latest release #2594

Merged
merged 3 commits into from Dec 8, 2022
Merged

Add MakeLatest parameter to support explicitly setting latest release #2594

merged 3 commits into from Dec 8, 2022

Commits on Dec 7, 2022

  1. Add MakeLatest parameter

    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
    chrisgrautealium committed Dec 7, 2022
    Copy the full SHA
    c2833e1 View commit details
    Browse the repository at this point in the history
  2. Update generated code per contributor's guide

    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/...
    ```
    chrisgrautealium committed Dec 7, 2022
    Copy the full SHA
    05df1a3 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    5f4e651 View commit details
    Browse the repository at this point in the history