Skip to content

Commit

Permalink
ci(commitlint): ensure upstream/master uses main repo URL [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#278
  • Loading branch information
myii committed Dec 20, 2020
1 parent 1fc52cd commit ac5a57c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ commitlint:
image: *image_commitlint
script:
# 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/logrotate-formula.git'
- 'git fetch --all'
# Set default commit hashes for `--from` and `--to`
- 'export COMMITLINT_FROM="$(git merge-base upstream/master HEAD)"'
Expand Down

0 comments on commit ac5a57c

Please sign in to comment.