-
Notifications
You must be signed in to change notification settings - Fork 25
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
ash-nazg should handle repository name changes #64
Comments
This PR is at w3c/webpayments-http-messages#5 |
So the problem arises because the repository was moved (i.e. had its name changed), and ash-nazg doesn't handle this gracefully at the moment. Renaming the issue accordingly. |
there doesn't seem to be an event in the GH API when a repo is moved at the moment, although it seems to be on the "wishlist". A possible fallback solution in the meantime would be:
|
Among other things that would need to be handled when a repo is transfered is ensuring the existing tracked open pull requests be re-associated to the new owner, associated with the right groups, and be re-validated accordingly. |
looking at the GH API feedback, it looks like the redirect will now happen properly but still no event. We could revalidate the repositories known to ash-nazg and detect the renaming at least. |
Each GH repository actually have an ID which we can rely on and will work after a rename but this could require a bit of work as ash-nazg currently heavily relies on the 'owner/shortname' of the repo |
As far as I can see, the best option would be to update ash-nazg to listen to the rename event and update the name of the repository or add a new repo in the repository manager but it will require an update of the webhook to listen to |
the rename event didn't exist back when this issue was raised - I agree that it sounds like the right approach. |
I'm ok ok either, whatever is the easiest to implement. I'm not worried about missing PR within 24 hours or less of a move. |
https://labs.w3.org/hatchery/repo-manager/pr/id/w3c/webpayments-core-messages/5
doesn't do anything when one tries to mark this PR as non-substantive. Note that the PR author doesn't appear as contributor in ash-nazg.
The text was updated successfully, but these errors were encountered: