Skip to content

Commit

Permalink
repos: add archived boolean field to Repository struct (google#782)
Browse files Browse the repository at this point in the history
Add Archived flag to Repository struct as per changes announced by GitHub
- https://developer.github.com/changes/2017-11-08-archiving-repositories/
  • Loading branch information
sahildua2305 authored and gmlewis committed Nov 16, 2017
1 parent 220ec21 commit 471e67c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type Repository struct {
HasDownloads *bool `json:"has_downloads"`
LicenseTemplate *string `json:"license_template,omitempty"`
GitignoreTemplate *string `json:"gitignore_template,omitempty"`
Archived *bool `json:"archived,omitempty"`

// Creating an organization repository. Required for non-owners.
TeamID *int `json:"team_id"`
Expand Down

0 comments on commit 471e67c

Please sign in to comment.