Skip to content
Snippets Groups Projects
Unverified Commit 2f0db666 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

ci(commitlint): ensure `upstream/master` uses main repo URL [skip ci]

parent 9b8b6e6a
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,8 @@ commitlint: ...@@ -53,7 +53,8 @@ commitlint:
image: *image_commitlint image: *image_commitlint
script: script:
# Add `upstream` remote to get access to `upstream/master` # Add `upstream` remote to get access to `upstream/master`
- 'git remote add upstream ${CI_PROJECT_URL}.git' - 'git remote add upstream
https://gitlab.com/saltstack-formulas/users-formula.git'
- 'git fetch --all' - 'git fetch --all'
# Set default commit hashes for `--from` and `--to` # Set default commit hashes for `--from` and `--to`
- 'export COMMITLINT_FROM="$(git merge-base upstream/master HEAD)"' - 'export COMMITLINT_FROM="$(git merge-base upstream/master HEAD)"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment