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.
Maybe these type of tests (API used by another service) should live in a special place, or we could use a special `@attr`, instead of just a docstring?