static-checks: Use proper ref branch when collecting commits to test
Use the actual branch specified in the CI run, instead of hardcoded
master/integration.
Addresses https://linaro.atlassian.net/browse/TFC-636
Cherry-picked from master with conflict resolution (lts-v2.8 branch already
contained adhoc changes to use itself as a reference for detecting which
commits belong to a current patchset, so this affectively syncs it with
master which uses more flexible and reusable scheme of getting it from
CI job params.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ic0fd0677978f226626d567108f17ccb864aa8095
6 files changed