Code Monkey home page Code Monkey logo

Comments (6)

tarebyte avatar tarebyte commented on May 22, 2024

@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?

from classroom.

johndbritton avatar johndbritton commented on May 22, 2024

@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.

from classroom.

pengwynn avatar pengwynn commented on May 22, 2024

@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?

from classroom.

tarebyte avatar tarebyte commented on May 22, 2024

@pengwynn yup that's exactly it. We authenticate an organization admin who can create repos on behalf of the org.

from classroom.

tarebyte avatar tarebyte commented on May 22, 2024

@pengwynn @johndbritton as it turns out you can get the plan for an organization.

I just 🚶 right by it.

https://developer.github.com/v3/orgs/#response-4

from classroom.

johndbritton avatar johndbritton commented on May 22, 2024

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

screen shot 2015-09-01 at 1 52 12 pm

Need to handle the following cases:

  • accepting private individual assignment
  • accepting private group assignment
  • teacher creating private individual assignment (disallow if they have no private repositories and tell them what their remaining quota is)
  • teacher creating private group assignment (disallow if they have no private repositories and tell them what their remaining quota is)

from classroom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.