ci: fix the linter by targeting the pr instead of the pr target
Created by: pataar
Description
The linter was targeting the target branch of a pull request, instead of the pull request itself. This way, lint errors would only occur after merging.
Screenshots:
You can see the difference here.
How Has This Been Tested?
By fixing the linting issues in this PR as well.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)