Skip to content

Commit

Permalink
fix(release.config.js): use full commit hash in commit link [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#89
  • Loading branch information
myii committed Oct 31, 2019
1 parent 5552d51 commit d9b4559
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
52 changes: 28 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
script:
# Install and run `salt-lint`
- pip install --user salt-lint
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$'
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
| xargs -I {} salt-lint {}
# Install and run `yamllint`
# Need at least `v1.17.0` for the `yaml-files` setting
Expand All @@ -43,49 +43,53 @@ jobs:
- gem install rubocop
- rubocop -d
# Install and run `commitlint`
- npm install @commitlint/config-conventional -D
- npm install @commitlint/travis-cli -D
- npm i -D @commitlint/config-conventional
@commitlint/travis-cli
- commitlint-travis

## Define the rest of the matrix based on Kitchen testing
# Make sure the instances listed below match up with
# the `platforms` defined in `kitchen.yml`
# - env: INSTANCE=git-debian-10-master-py3
- env: INSTANCE=deb-debian-10-master-py3
# - env: INSTANCE=git-ubuntu-1804-develop-py3
# - env: INSTANCE=git-centos-7-develop-py3
# - env: INSTANCE=rpm-centos-7-develop-py3
# - env: INSTANCE=git-fedora-30-develop-py3
# - env: INSTANCE=rpm-fedora-30-develop-py3
# - env: INSTANCE=git-opensuse-leap-15-develop-py3
# - env: INSTANCE=git-amazonlinux-2-develop-py2
# - env: INSTANCE=rpm-amazonlinux-2-develop-py2
# - env: INSTANCE=git-arch-base-latest-develop-py2
# - env: INSTANCE=git-ubuntu-1804-master-py3
# - env: INSTANCE=git-centos-8-master-py3
# - env: INSTANCE=rpm-centos-8-master-py3
# - env: INSTANCE=git-fedora-31-master-py3
# - env: INSTANCE=rpm-fedora-31-master-py3
# - env: INSTANCE=git-opensuse-leap-151-master-py3
# - env: INSTANCE=git-amazonlinux-2-master-py2
# - env: INSTANCE=rpm-amazonlinux-2-master-py2
# - env: INSTANCE=git-arch-base-latest-master-py2
# - env: INSTANCE=git-debian-10-2019-2-py3
# - env: INSTANCE=deb-debian-10-2019-2-py3
# - env: INSTANCE=git-debian-9-2019-2-py3
# - env: INSTANCE=deb-debian-9-2019-2-py3
- env: INSTANCE=git-ubuntu-1804-2019-2-py3
# - env: INSTANCE=git-centos-7-2019-2-py3
- env: INSTANCE=rpm-centos-7-2019-2-py3
# - env: INSTANCE=git-fedora-30-2019-2-py3
# - env: INSTANCE=rpm-fedora-30-2019-2-py3
# - env: INSTANCE=git-opensuse-leap-15-2019-2-py3
# - env: INSTANCE=git-centos-8-2019-2-py3
- env: INSTANCE=rpm-centos-8-2019-2-py3
# - env: INSTANCE=git-fedora-31-2019-2-py3
# - env: INSTANCE=rpm-fedora-31-2019-2-py3
# - env: INSTANCE=git-opensuse-leap-151-2019-2-py3
# - env: INSTANCE=git-centos-7-2019-2-py2
# - env: INSTANCE=rpm-centos-7-2019-2-py2
# - env: INSTANCE=git-amazonlinux-2-2019-2-py2
# - env: INSTANCE=rpm-amazonlinux-2-2019-2-py2
- env: INSTANCE=git-arch-base-latest-2019-2-py2
# - env: INSTANCE=git-fedora-30-2018-3-py3
- env: INSTANCE=rpm-fedora-30-2018-3-py3
# - env: INSTANCE=git-debian-9-2018-3-py2
# - env: INSTANCE=deb-debian-9-2018-3-py2
# - env: INSTANCE=git-ubuntu-1604-2018-3-py2
# - env: INSTANCE=git-centos-7-2018-3-py2
# - env: INSTANCE=rpm-centos-7-2018-3-py2
# - env: INSTANCE=git-fedora-29-2018-3-py2
- env: INSTANCE=rpm-fedora-29-2018-3-py2
- env: INSTANCE=git-opensuse-leap-15-2018-3-py2
- env: INSTANCE=git-opensuse-leap-151-2018-3-py2
# - env: INSTANCE=git-amazonlinux-2-2018-3-py2
# - env: INSTANCE=rpm-amazonlinux-2-2018-3-py2
# - env: INSTANCE=git-arch-base-latest-2018-3-py2
# - env: INSTANCE=deb-debian-8-2017-7-py2
# - env: INSTANCE=rpm-centos-6-2017-7-py2
# - env: INSTANCE=rpm-fedora-29-2017-7-py2
# - env: INSTANCE=rpm-fedora-30-2017-7-py2
- env: INSTANCE=rpm-amazonlinux-2-2017-7-py2

## Define the release stage that runs `semantic-release`
Expand All @@ -102,9 +106,9 @@ jobs:
- maintainer contributor

# Install all dependencies required for `semantic-release`
- npm install @semantic-release/changelog@3 -D
- npm install @semantic-release/exec@3 -D
- npm install @semantic-release/git@7 -D
- npm i -D @semantic-release/changelog@3
@semantic-release/exec@3
@semantic-release/git@7
deploy:
provider: script
skip_cleanup: true
Expand Down
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = {
}

if (typeof commit.hash === `string`) {
commit.hash = commit.hash.substring(0, 7)
commit.shortHash = commit.hash.substring(0, 7)
}

if (typeof commit.subject === `string`) {
Expand Down

0 comments on commit d9b4559

Please sign in to comment.