Commit e457c467 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

would never have gl_token here

parent bc3eeb9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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."
@@ -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