New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Migrate redirected repos #240
Comments
How to detect if a repo is moved or not? Does github gives the indication in the response? |
I think the open issue is #228 |
I looked into this recently and with the help of Github support found two ways of doing this: (1) The non-API 'hacky' route (guess which one of us came up with this idea 😄) Although the API doesn't redirect on repository or user, So, one alternative is to I think this would be a viable solution if there were no way to do this through the API, but Ivan from Github support showed me what may be a better alternative. (2) The API route less travelled All repositories and users have numerical IDs that uniquely identify them — we've just had no reason to store them...until maybe now. If we were to store them, then you could use that to ensure you get the same repository regardless of what it is named. Take You could use this same idea to solve the name switching bug mentioned in issue #301, too, using a call to Anyway, let me know your thoughts when you have time. I'd love to take a crack at solving this. Cheers, |
@O-I Awesome work. 👍 I think second approach is best. |
OK. I'll look into going that route then. |
👋 Is there any update or workaround for this? I wouldn't wanna introduce duplication but I just moved PragTob/benchee to bencheeorg/benchee and would like to know how to best proceed :D |
Still needed |
Fixed on #1722 |
When a repo moves, move the users:
http://www.codetriage.com/defunkt/resque =>
http://www.codetriage.com/resque/resque
Maybe give a "migrate" this repo button of some kind where it puts your request in a manual queue or opens a github issue or something.
I could have sworn this was an open issue, but I cannot find it ATM.
The text was updated successfully, but these errors were encountered: