I have a Jenkins job which gets triggered every time someone tries to merge a pull request into my github repo.
This job (among other things) is supposed to run pylint only on the commits that are to be merged.
If the pull request contains only a single commit, this is easy to implement.
However, the PR may contain multiple commits.
The Jenkins job runs a bash script to accomplish this.
How can I list all the changed files in all the new commits that are to be merged in the github pull request so that I can run pylint on all of them?