From 6c2125d1df25a679cca8afae43f7a0b23a4068f2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 5 Dec 2019 09:21:05 +1000 Subject: [PATCH] gitlab CI: add an explanatory comment why we're hardcoding master Signed-off-by: Peter Hutterer --- .gitlab-ci/check-commit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/check-commit.py b/.gitlab-ci/check-commit.py index be89bf49..964d4ae0 100755 --- a/.gitlab-ci/check-commit.py +++ b/.gitlab-ci/check-commit.py @@ -12,6 +12,11 @@ import pytest if os.environ.get('CI'): # Environment variables set by gitlab CI_COMMIT_SHA = os.environ['CI_COMMIT_SHA'] + # This is intentionally hardcoded to master. CI_MERGE_REQUEST_TARGET_BRANCH_NAME + # is only available when run with only: [merge_requests] + # but that generates a detached pipeline with only this job in it. + # Since merging into a non-master branch is not a thing in libinput + # anyway, we can hardcode this here. CI_MERGE_REQUEST_TARGET_BRANCH_NAME = 'master' CI_SERVER_HOST = os.environ['CI_SERVER_HOST'] UPSTREAM = 'upstream'