Skip to content

Commit 3e246d2

Browse files
committed
Add support for new Projects Preview API
Fixes google#432. Change-Id: I4792114482f412f0eff54a6899a759fc9393ff88
1 parent e4194fe commit 3e246d2

File tree

4 files changed

+891
-1
lines changed

4 files changed

+891
-1
lines changed

github/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ const (
8787

8888
// https://developer.github.com/v3/repos/traffic/
8989
mediaTypeTrafficPreview = "application/vnd.github.spiderman-preview+json"
90+
91+
// https://developer.github.com/changes/2016-09-14-projects-api/
92+
mediaTypeProjectsPreview = "application/vnd.github.inertia-preview+json"
9093
)
9194

9295
// A Client manages communication with the GitHub API.

github/repos_forks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type RepositoryCreateForkOptions struct {
5050

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

0 commit comments

Comments
 (0)