-
Notifications
You must be signed in to change notification settings - Fork 569
Private assignment with no private repositories available #46
Comments
@johndbritton the public API doesn't allow me to check to see if the user has private repositories does it. I read through the docs and it doesn't seem like it. Any recommendations about how to safe guard against this? |
@pengwynn Do you have any suggestions for this? We'd like to be able to check the number of available private repositories in the organization's plan via the API. |
@johndbritton @tarebyte: I'm assuming you'd be authenticating as someone who otherwise could create a new repository? You just need a way to know if there's headroom on the plan to do so? |
@pengwynn yup that's exactly it. We authenticate an organization admin who can create repos on behalf of the org. |
@pengwynn @johndbritton as it turns out you can get the plan for an organization. I just 🚶 right by it. |
Here's the result I'm seeing now as a student who tries to accept an invitation to a private individual assignment on an organization which has no private repositories available Need to handle the following cases:
|
Creating a private assignment if there are no private repositories available results in a poor experience:
The text was updated successfully, but these errors were encountered: