Loading project-automation/check-merge-request.yml +2 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ check:merge-request: - git-conventional-commits init - | curl -sSLf --header "PRIVATE-TOKEN: ${GL_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests?iids[]=${CI_MERGE_REQUEST_IID}" > /tmp/mr.json curl -sSLf --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests?iids[]=${CI_MERGE_REQUEST_IID}" > /tmp/mr.json - | if [ "$(jq -r '.[].squash' test.json)" = "true" ]; then echo "[*] Squashing is enabled. Will check the MR title." Loading @@ -25,4 +25,4 @@ check:merge-request: echo "[!] You're not squashing this MR. Ensure all commit messages have a proper format!" # TODO automatically check this fi rules: - if: '$CI_MERGE_REQUEST_IID && $GL_TOKEN' - if: $CI_MERGE_REQUEST_IID Loading
project-automation/check-merge-request.yml +2 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ check:merge-request: - git-conventional-commits init - | curl -sSLf --header "PRIVATE-TOKEN: ${GL_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests?iids[]=${CI_MERGE_REQUEST_IID}" > /tmp/mr.json curl -sSLf --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests?iids[]=${CI_MERGE_REQUEST_IID}" > /tmp/mr.json - | if [ "$(jq -r '.[].squash' test.json)" = "true" ]; then echo "[*] Squashing is enabled. Will check the MR title." Loading @@ -25,4 +25,4 @@ check:merge-request: echo "[!] You're not squashing this MR. Ensure all commit messages have a proper format!" # TODO automatically check this fi rules: - if: '$CI_MERGE_REQUEST_IID && $GL_TOKEN' - if: $CI_MERGE_REQUEST_IID