Skip to content

A library for manipulating gitbucket by calling the gitbucket API from a go program

License

Notifications You must be signed in to change notification settings

oshiro3/gitbucket-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov Go Report Card

gitbucket-go-client

gitbucket-go-client is a library for manipulating gitbucket by calling the gitbucket API from a go program.

getting started

go get -u github.com/oshiro3/gitbucket-go-client

usage

import (
	"os"

	"github.com/oshiro3/gitbucket-go-client/client"
)

func main() {
	cli := client.New(gitbucketHost, repositoryOwner, repositoryName)
	cli.SetToken(os.Getenv("token"))
	payload := &client.Status{State: "pending", TargetUrl: "http://example.com", Description: "example message", Context: "ci"}
	err := cli.SetStatus("$commit_hash", payload)
}

caution

I haven't versioned yet because it's in the early stages of development.

About

A library for manipulating gitbucket by calling the gitbucket API from a go program

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages