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.
Makes sense that we want to do this.