Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/acim/github-latest

Small utility to find out the latest release of a repository on GitHub
https://github.com/acim/github-latest

github go golang latest release

Last synced: 10 days ago
JSON representation

Small utility to find out the latest release of a repository on GitHub

Awesome Lists containing this project

README

        

# github-latest

![check](https://github.com/acim/github-latest/workflows/check/badge.svg)
![release](https://github.com/acim/github-latest/workflows/release/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/acim/github-latest.svg)](https://pkg.go.dev/github.com/acim/github-latest)
[![Go Report](https://goreportcard.com/badge/github.com/acim/github-latest)](https://goreportcard.com/report/github.com/acim/github-latest)

Small utility to find out the latest release of a GitHub repository.

## Installation

### From source

```bash
go install github.com/acim/github-latest@latest
```

### [Binary releases](https://github.com/acim/github-latest/releases)

## Usage

`github-latest owner/repo [major]`

major parameter is optional

## Example

`github-latest helm/helm 2`

## Private repositories or rate limit

If you want to access your private repository or you need more than 60 requests per hour,
define GITHUB_ACCESS_TOKEN environment variable on your local machine.

You can generate your token on **GitHub - Settings - Developer settings - Personal access tokens**

## License

Licensed under either of

- Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

## Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.