make the category param of gitpoller callable.

This PR is for review.
It makes the param category of gitpoller callable. the function takes only 1 arg: the branch.