Giter Club home page Giter Club logo

github-limits's Introduction

GitHub limits

A collection of various string/numeric limits with GitHub. Not all of these are publicly documented, but I'd like to change that.

Note: these do not include things like GraphQL resource limits, REST rate limits and disk quotas, things that are about resource usage, rather than simple strings or numbers.

List of limits

Each limit carries the full set of relevant restrictions, as well as where I gained the information from.

Usernames

  • Max length: 39 characters
  • All characters must be either a hyphen (-) or alphanumeric
  • Cannot start with a hyphen
  • Cannot include consecutive hyphens
  • Cannot be a reserved name
  • Must be globally unique

This was verified through checking validation messages when attempting to create an account.

Organization names

  • Max length: 39 characters
  • All characters must be either a hyphen (-) or alphanumeric
  • Cannot start with a hyphen
  • Cannot include consecutive hyphens
  • Cannot be a reserved name
  • Must be globally unique

This was verified through checking validation messages when attempting to create an organization.

Team names

  • Max length: 255 characters
  • All characters must be either a hyphen (-) or alphanumeric
  • Must be unique per-organization

Note: longer team names will still validate, they will just be truncated.

This was verified through a support email.

Repository names

  • Max length: 100 characters
  • All characters must be either a hyphen (-), a period (.), or alphanumeric
  • Must be unique per-user and/or per-organization

This was verified through checking automatically-generated aliases with repository names.

Issue/pull request numbers

  • Max value: 1073741824 (max 4-byte Ruby integer)
  • Min value: 1

The first was verified through a support email. The second was verified by creating an issue in an empty repo.

Contributing

If you find limits to something not listed here, please feel free to file an issue with details about the limits. Alternatively, you could edit this file and file a pull request. I do need three things for each entry, though:

  • The entry itself.
  • Any relevant constraints, including max length, permitted characters, etc.
  • How you figured out the relevant constraints.

Also, these are only confirmed with the public GitHub site. If there's a different set of limits for private data and/or enterprise setups, I'd love to have those.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

github-limits's People

Contributors

dead-claudia avatar

Watchers

 avatar

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.