Skip to content

Alerting on new release for every invocation is excessive #2485

@mgabeler-lee-6rs

Description

@mgabeler-lee-6rs

Describe the bug

Alerting about the availability of a new release for every invocation is excessive. Most tools store some config so they only issue alerts like this once a day.

Steps to reproduce the behavior

  1. Have a not latest release of the app
  2. Run gh --help, see the new release alert
  3. Run gh --help again right away

Expected vs actual behavior

Most other apps like this I've worked with limit their alerts to e.g. once per new version, or once per new version per day, so as not to irritate their users with spammy output.

I found #743 & #2107 but they address suppressing this entirely in CI environments, which is a somewhat different use case. My argument here is that humans may want to see this when running it interactively, but they don't need to see it over and over and over again.

Logs

$ gh --help >/dev/null ; gh --help >/dev/null


A new release of gh is available: 1.2.1 → v1.3.0
https://github.com/cli/cli/releases/tag/v1.3.0



A new release of gh is available: 1.2.1 → v1.3.0
https://github.com/cli/cli/releases/tag/v1.3.0

Only one of these is needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions