Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are GitHub Issue Comment IDs Unique?

Intro/Scenario

We use GitHub issues to manage our "bug-tracking" and "feature backlog".
We are writing a script to "backup" the GitHub issues so that they are "available" if (when) GitHub is "down" ...

see: https://github.com/dwyl/github-backup

We are using the API / WebHooks to get the data from GitHub,
but we have a question which will inform our Database Schema for storing the Issues and their related comments.

Question

Is the id of an issue and the id of the issue's comments unique across GitHub (e.g: an auto-incrementing INT) or are they only unique to the repository in which they were created?

For example: we can see the id of an issue comment when we link to it:
https://github.com/dwyl/github-backup/issues/37#issuecomment-369581775
is the id (in this case) 369581775 globally unique across GitHub?

like image 623
nelsonic Avatar asked Sep 03 '26 07:09

nelsonic


1 Answers

I know this is an old question, but the answer is sadly NO.

An example of two issues in different repos with the same comment ID:

https://github.com/dotnet/yarp/pull/459#discussion_r509375552

https://github.com/dotnet/runtime/issues/3453#issuecomment-509375552

like image 144
Miha Zupan Avatar answered Sep 05 '26 23:09

Miha Zupan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!