Currently GitHub does not support a way to exclude files or folders from the pull request.
If I had this problem while sending pull requests and it was something that was causing pain to my development team I can only think of the following:
The goal would be to exclude the folders and files from the difference but at the same time you don't want to merge the changes of the services before the whole pull request is ready. This solution is not ideal but you could:
- Commit and push the folders you're not interested in reviewing - branch
A
- Branch out and commit the files you really plan to compare - branch
B
- Open a pull request from
B
to A
and you'll only see what you are interested on.
A few things I don't like with this suggestion:
- You would need to automate this in some way, or else it would be too much manual work (a bash script?)
- If you need to change your code as part of the review you would have to repeat the process, probably because you want those files re-generated. This would defeat the good conversation value of the pull request, where you see a history of changes
Maybe someone has a better flow for this, but I had the same issue with distribution files which I pushed upstream and I dealt with it by just passing them completely. However I imagine your use case is much trickier than mine.
Hope this helps or it gives other users something to start on.