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

Include the version of go-github in User-Agent headers sent to the GitHub API #2403

Merged
merged 7 commits into from Aug 13, 2022

Commits on Jul 2, 2022

  1. Expose the package version on the Client (e.g. `"45.2.0")

    This exposes the current version of the `go-github` package
    (e.g. `"45.2.0"`) as a field on the `Client` struct.
    
    This will allow users of `go-github` to access the current version
    of the package, for example if they want to construct a custom
    `User-Agent` header including it.
    
    This change means that, before releasing tagging and releasing a
    new version of the package, this string constant will have to be
    updated.
    timrogers committed Jul 2, 2022
    Copy the full SHA
    7152610 View commit details
    Browse the repository at this point in the history
  2. Include the version of the module in the default User-Agent request…

    … header
    
    This updates the default request header sent by the module to
    include the current version, e.g. `go-github/45.2.0`.
    
    This makes it easier for GitHub to track usage of this SDK and
    how users are upgrading between versions.
    
    Users can continue to overwrite this default user agent with
    their own string by setting the `UserAgent` property on the
    `Client`.
    timrogers committed Jul 2, 2022
    Copy the full SHA
    3157af0 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2022

  1. Copy the full SHA
    75465e1 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8495ae5 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    f65d26e View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Copy the full SHA
    c963102 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7279ad7 View commit details
    Browse the repository at this point in the history