Unique id for Repository on /repos/ API endpoint
#29784
Unanswered
humitos
asked this question in
API and Webhooks
Replies: 4 comments 2 replies
-
|
I am also interested whether the repository id is unique and immutable or not. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
So guys let's use Bump ⬆️ also interested in this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Didn't test it for repos, but the |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
We may want to use "full_name" as the unique id. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! We use the
/repos/(https://docs.github.com/en/rest/repos/repos) endpoint from the API to save a local cache to speed up some queries for our application without hitting GitHub API.After some time we found some weird behavior where some repositories were duplicated in our local cache. In the last months, it started to happen more frequently and while debugging it I found that the
idreturned by this endpoint was not unique and could change over time --even if all the rest of its attribute are the same.As an example, we detected that on August 16, 2022 the repository
extratone/wtfchanges itsidfrom422691395to515187740:What is the reason behind this
idchange? What is the field from the/repos/endpoint we should consider unique?Note that we are tracking it by
idand not byfull_namebecause the later could change if the repository is renamed or transferred to a different organization.Beta Was this translation helpful? Give feedback.
All reactions