Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
mirror
Fail2ban Formula
Commits
97715828
Unverified
Commit
97715828
authored
Dec 20, 2020
by
Imran Iqbal
Browse files
ci(commitlint): ensure `upstream/master` uses main repo URL [skip ci]
* Automated using
https://github.com/myii/ssf-formula/pull/278
parent
ed1cbaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
97715828
...
...
@@ -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/fail2ban-formula.git'
-
'
git
fetch
--all'
# Set default commit hashes for `--from` and `--to`
-
'
export
COMMITLINT_FROM="$(git
merge-base
upstream/master
HEAD)"'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment