> How about doing a retry when the repository can't be found? If it can't be found, reload the repository and try again?

Sounds good. And also check the repository id in the hook payload, maybe. Having an id based endpoint would of course be better.