I know that, on github, you can define a protected branch and allow only certain users to merge a pull request there.
Say, for instance, that users A, B, C and D are developers and A is team leader and the one that should be responsible for merging the pull requests into the protected development branch. It happens that A is also a developer and amongst all other activities, he sometimes does some coding and issues a pull request.
Pull requests should not be approved into the development brach by its author, so A could not approve a pull request he created.
So, could I add to the protected development branch a set o permission rules? My idea was that both users A and B could approve merges into the protected development branch but A would be able to approve pull requests from B, C and D. Whereas B would only be able to approve pull requests from A.
I hope my question was clear enough. Is this feasible?