Skip to content

calebamiles/github-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A very basic client for the GitHub API. Currently basic information relating to

  • Pull Requests
  • Issues
  • Commits

can be obtained. In addition raw JSON can be returned from an GitHub API endpoint if the caller knows how to properly handle the result. Consumers should only ever create a client via

client.New(repositoryOwner, repositoryName, accessToken, pathToCacheFile)

or

client.NewNonCachingClient(repositoryOwner, repositoryName, accessToken)

no other way of creating a client.Client is supported. If pathToCacheFile is an empty string than a temporary file will be created. In order to help consumers test against this libraries fakes generated with Counterfeiter have been provided for all major interfaces in <packagename>/<packageName>fakes. This library should be considered to be very experimental and probably should not be used. Consumers looking for a GitHub client should probably use the one from GitHub. You have been warned!

About

A dumb GitHub client that nobody should use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages