Detect transferring of repositories between two accounts from outside via API #24903
-
Hi, Actors: Repo01 - name of the example repository UserA - an example user with one “Repo01” repo, I’m not the owner UnknowUserB - an example account name with, I’m not the owner and I dont know the name in advance Scenario: UserA use “Transfer Repository” feature to transfer Repo01 from himself to UserB UnknowUserB accept “Transfer Repository” request and now “Repo01” is at github.com/UnknowUserB/Repo01 Is there any way to detect such operation via public API? So I could update extrenal repository list and put the new url there? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you know the original owner name and original repository name, you can find out where it went by using the Get repository REST endpoint. For example, I know that atom/tree-sitter-syntax was transferred to atom-archive/tree-sitter-syntax. If I access https://api.github.com/repos/atom/tree-sitter-syntax, I’m redirected to https://api.github.com/repositories/67171757, which reveals that the repository full name is I hope that helps! |
Beta Was this translation helpful? Give feedback.
If you know the original owner name and original repository name, you can find out where it went by using the Get repository REST endpoint. For example, I know that atom/tree-sitter-syntax was transferred to atom-archive/tree-sitter-syntax. If I access https://api.github.com/repos/atom/tree-sitter-syntax, I’m redirected to https://api.github.com/repositories/67171757, which reveals that the repository full name is
atom-archive/tree-sitter-syntax
now.I hope that helps!