Skip to content

How does GitHub assign numbers to issues, pull requests and discussions? #69759

Answered by mdavic0
shenweiyan asked this question in Discussions
Discussion options

You must be logged in to vote

GitHub uses a single, shared counter for issues, pull requests, and discussions within a repository. This means that when you create a new item (be it an issue, pull request, or discussion) in a fresh repository, the numbering starts at 1 and increments for each subsequent item, regardless of its type. Therefore, the numbering sequence is unified across these three categories of items within a repository.

This design simplifies the process of numbering and referencing items within a repository. It provides a consistent and straightforward way to identify and link to specific items using a common numbering system.

While this behavior is consistent and well-documented, it's not explicitly e…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zorana-gavrilovic
Comment options

Answer selected by shenweiyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment