Skip to content

Commit

Permalink
Add support for new Projects Preview API
Browse files Browse the repository at this point in the history
Fixes google#432.

Change-Id: I4792114482f412f0eff54a6899a759fc9393ff88
  • Loading branch information
gmlewis committed Sep 30, 2016
1 parent f40e89e commit c9db26e
Show file tree
Hide file tree
Showing 4 changed files with 891 additions and 1 deletion.
3 changes: 3 additions & 0 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const (

// https://developer.github.com/v3/repos/traffic/
mediaTypeTrafficPreview = "application/vnd.github.spiderman-preview+json"

// https://developer.github.com/changes/2016-09-14-projects-api/
mediaTypeProjectsPreview = "application/vnd.github.inertia-preview+json"
)

// A Client manages communication with the GitHub API.
Expand Down
2 changes: 1 addition & 1 deletion github/repos_forks.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type RepositoryCreateForkOptions struct {

// CreateFork creates a fork of the specified repository.
//
// GitHub API docs: http://developer.github.com/v3/repos/forks/#list-forks
// GitHub API docs: https://developer.github.com/v3/repos/forks/#create-a-fork
func (s *RepositoriesService) CreateFork(owner, repo string, opt *RepositoryCreateForkOptions) (*Repository, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/forks", owner, repo)
u, err := addOptions(u, opt)
Expand Down
Loading

0 comments on commit c9db26e

Please # to comment.