Simple Go wrapper for the GitHub API. It's extracted from my other project. The API is inspired by octokit.rb.
http://godoc.org/github.com/jingweno/octokat
package main
import "github.com/jingweno/octokat"
func main() {
client := octokat.NewClient()
user, err := client.User("jingweno")
// Do something with user
}package main
import "github.com/jingweno/octokat"
func main() {
client := octokat.NewClient().WithLogin("LOGIN", "PASSWORD")
authorizations, err := client.Authorizations()
// Do something with authorizations
}package main
import "github.com/jingweno/octokat"
func main() {
client := octokat.NewClient().WithToken("OAUTH_TOKEN")
repo := octokat.Repo{Name: "octokat", UserName: "jingweno"}
params := octokat.PullRequestParams{Base: "master", Head: "feature", Title: "A pull request", Body: "A body"}
pullRequest, err := client.CreatePullRequest(repo, params)
// Do something with pullRequest
}- 0.2.0 June 11, 2013
- Implement getting a repository
- Implement creating a fork
- 0.1.0 June 8, 2013
- Extract
octokatfromgh
- Extract
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
octokat is released under the MIT license. See LICENSE.md.
