Open ottok opened 4 years ago
Tested in https://salsa.debian.org/mariadb-team/mariadb-10.4/-/jobs/657676 - works well! Just need to document this properly and add support for CIMERGE* variables like we have in Travis-CI.
Without the variables, a fork running long behind upstream master will get way too many commits comparing only origin/master..HEAD. See example https://gitlab.com/CsatariGergely/fevermap/-/jobs/516483911
Gnitpick was initially written with Github and Travis-CI in mind. But if might also be useful on Gitlab-CI.
We should incorporate checking for
CI_MERGE_REQUEST_SOURCE_BRANCH_SHA
andCI_MERGE_REQUEST_TARGET_BRANCH_SHA
to get the Gitlab-CI Merge Request commit range.See https://docs.gitlab.com/ee/ci/variables/predefined_variables.html