go-github

command module
v0.0.0-...-be20d2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

go-github

Golang helper to query github repositories.

Motivation

I needed to get the latest release URL of a github project to import it into my docker images.

Usage

Simply provide the owner/organisation and the repository name and off you go.

➜ ./go-github_0.2.2_Darwin rLatestUrl --ghrepo go-github --regex ".*inux.*" --limit 0
https://github.com/qnib/go-github/releases/download/0.2.1/go-github_0.2.1_Linux
https://github.com/qnib/go-github/releases/download/0.1/go-github-0.1_linux_amd64
➜  ./go-github_0.2.2_Darwin rLatestUrl --ghrepo go-github --regex ".*inux.*" --limit 1
https://github.com/qnib/go-github/releases/download/0.2.1/go-github_0.2.1_Linux
➜ 
➜  ./go-github rLatestUrl --ghorg ashwanthkumar --ghrepo gocd-slack-build-notifier
https://github.com/ashwanthkumar/gocd-slack-build-notifier/releases/download/v1.1.2/gocd-slack-notifier-1.1.2.jar
https://github.com/ashwanthkumar/gocd-slack-build-notifier/releases/download/v1.1.1/gocd-slack-notifier-1.1.1.jar
https://github.com/ashwanthkumar/gocd-slack-build-notifier/releases/download/1.0/gocd-slack-notifier-1.0.jar
➜ ./go-github rLatestUrl --ghorg ashwanthkumar --ghrepo gocd-slack-build-notifier --limit 1
https://github.com/ashwanthkumar/gocd-slack-build-notifier/releases/download/v1.1.2/gocd-slack-notifier-1.1.2.jar

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL