Go-github: Repository.Get should set mediaTypeRepositoryVisibilityPreview

Created on 7 Apr 2020  路  3Comments  路  Source: google/go-github

Per https://developer.github.com/v3/repos/#get-a-repository, the mediaTypeRepositoryVisibilityPreview accept header needs to be set to see the Visibility flag for a repository.

NeedsReview

Most helpful comment

@gmlewis could I take this issue?

All 3 comments

Great catch! Thank you, @propertone. Would you like to submit a PR?

The value needs to be added here:
https://github.com/google/go-github/blob/master/github/repos.go#L417

@gmlewis could I take this issue?

Thanks, @wesleimp! This one is yours. :smile:

Was this page helpful?
0 / 5 - 0 ratings