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
{{ message }}
Repository navigation
🐛 gh repo create: Internal repository creation fails with a GraphQL error #2101
@shrihanDev Are you trying to specifically create an internal repo? That is a special type of repo specific to enterprise accounts, if you are not creating the repository in an organization that is owned by an enterprise account then you won't be able to create this type of repo. docs
Can we selectively show the visibility to users when creating a repository ? Like if user isn't creating an enterprise repo, do not show the INTERNAL visibility. If that is possible, then we could use it to hide Internal visibility altogether.
@ShubhankarKG That is a good question. I think that is technically possible (there are API's we could use, I would want to double check) but would require some larger changes to the repo creation flow. Please feel free to open an enhancement issue around this feature. One easier change, that might make a difference, would be to add some description to each repo visibility type in the prompt text to make it less confusing.
@shrihanDev Are you trying to specifically create an internal repo? That is a special type of repo specific to enterprise accounts, if you are not creating the repository in an organization that is owned by an enterprise account then you won't be able to create this type of repo. docs
Actually, I meant that it shouldn't show a GraphQL error like this. It should show something like: You cannot create an Internal repo........
Or actually make this conditionally show if the account is an enterprise one, as @ShubhankarKG said.
@shrihanDev That makes sense. You are correct, the error message is not very helpful and could be made better. Since we now have #2106 I am going to close out this issue. We can move any further discussion about how best to solve this in that enhancement issue.
Activity
samcoe commentedon Oct 6, 2020
@shrihanDev Are you trying to specifically create an internal repo? That is a special type of repo specific to enterprise accounts, if you are not creating the repository in an organization that is owned by an enterprise account then you won't be able to create this type of repo. docs
ShubhankarKG commentedon Oct 6, 2020
Can we selectively show the visibility to users when creating a repository ? Like if user isn't creating an enterprise repo, do not show the INTERNAL visibility. If that is possible, then we could use it to hide Internal visibility altogether.
samcoe commentedon Oct 6, 2020
@ShubhankarKG That is a good question. I think that is technically possible (there are API's we could use, I would want to double check) but would require some larger changes to the repo creation flow. Please feel free to open an enhancement issue around this feature. One easier change, that might make a difference, would be to add some description to each repo visibility type in the prompt text to make it less confusing.
contourintegrals commentedon Oct 6, 2020
Actually, I meant that it shouldn't show a GraphQL error like this. It should show something like: You cannot create an Internal repo........
Or actually make this conditionally show if the account is an enterprise one, as @ShubhankarKG said.
samcoe commentedon Oct 7, 2020
@shrihanDev That makes sense. You are correct, the error message is not very helpful and could be made better. Since we now have #2106 I am going to close out this issue. We can move any further discussion about how best to solve this in that enhancement issue.
Jenz8986 commentedon Oct 29, 2021
2101