Not being redirected when Organization is renamed


#1

Hello :wave:

When Organisations are renamed there is no redirect to the new name when you do a request as an authenticated integration. If you do the same request without authentication then there is the redirect.

example:

  • no auth: GET api.github.com/repos/miltador/pdfmake -> redirect
  • with installation token: GET api.github.com/repos/miltador/pdfmake -> 404 Not found

This is a bug, right?
Also there doesn’t seem to be an event for renames, how should we handle this problem?

Thanks,

Julia


#2

Thanks so much for reporting this, @Realtin – that does look like a bug on our end and I’ve opened an internal issue so that the team can investigate. I can’t promise an ETA, but we’ll followup here as soon as there’s any news.

Also there doesn’t seem to be an event for renames, how should we handle this problem?

Just to make sure I understand – which kinds of events are interested in here? Webhook events or events in the Events API? There are no events of either type currently, but adding webhook events for renames is on our wishlist already.

And can you clarify what kinds of problems this is causing for you, other than the bug you described earlier with the missing redirect?

Thanks! :bow:


#3

Also, as far as I can tell – a rename didn’t happen here. Instead, the repository was transferred from one account to another. The problem with the redirect still exists, but just wanted to clarify that one point. If I’m misunderstanding the situation – please let me know. :pray:


#4

Thanks for the quick reply!

I checked and you are right, the repo was moved to a different account that we (greenkeeper) are not installed on.

But I found another example where the account id stayed the same, so it was a rename of the user/org

GET api.github.com/repos/rafa1231518/cyanstyle-mod

  • no token: redirects to fallk/cyanstyle-mod
  • with installation token: 404

I would be interested in a Webhook Event for when a user/org is being renamed.


#5

But I found another example where the account id stayed the same, so it was a rename of the user/org

Thanks for that example, @Realtin – I’ve shard it with the team in the internal issue we have for this.

I would be interested in a Webhook Event for when a user/org is being renamed.

Thanks for clarifying. Yeah, adding that event is on the team’s radar, but can’t say when it might happen.


#6

Hey @Realtin,

Just wanted to let you know that the team deployed some changes which should have fixed the problem with the redirects. If you can still reproduce this — please let us know.

Thanks again for the report. :bow: