Skip to content

Commit 74c3124

Browse files
shanempopegmlewis
authored andcommitted
Add support for creating and using template repos (#1236)
Fixes #1235.
1 parent c756c32 commit 74c3124

File tree

5 files changed

+281
-127
lines changed

5 files changed

+281
-127
lines changed

github/github-accessors.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 88 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github.go

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

154154
// https://developer.github.com/v3/previews/#repository-creation-permissions
155155
mediaTypeMemberAllowedRepoCreationTypePreview = "application/vnd.github.surtur-preview+json"
156+
157+
// https://developer.github.com/v3/previews/#create-and-use-repository-templates
158+
mediaTypeRepositoryTemplatePreview = "application/vnd.github.baptiste-preview+json"
156159
)
157160

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

0 commit comments

Comments
 (0)