Tweaks to make the GH hook work against the core repo API

I believe this got lost in the models refactor where we minimised some models and got rid of teams.
I added a docstring to the test to track why it's there.
Yes this is a good idea I think. At least then we can double check for breaking changes.