You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using github.com/google/go-github/v53 v53.2.0 against GitHub Enterprise Server 3.5.5, the following code was able to convert public repositories to private, but it did nothing in the case of internal repositories (there was no error, and the visibility level was unchanged):
Hmmm... you might prefer to contact GitHub v3 API technical support to report the inconsistency of behavior, as this is simply a client repo that makes it easier to make calls into the GitHub v3 API.
Please feel free to report back here what you find out from the official tech support team.
OK, thanks, I kind of assumed that that sort of inconsistency would be unlikely to have persisted in the GitHub API, and I am too lazy to test the REST API directly.
Using github.com/google/go-github/v53 v53.2.0 against GitHub Enterprise Server 3.5.5, the following code was able to convert
public
repositories toprivate
, but it did nothing in the case ofinternal
repositories (there was no error, and the visibility level was unchanged):In contrast, the alternative approach of setting the
Visibility
attribute toprivate
worked for bothpublic
andinternal
repositories:go version go1.20.4 darwin/amd64
The text was updated successfully, but these errors were encountered: