Skip to content

Commit d9b4559

Browse files
committed
fix(release.config.js): use full commit hash in commit link [skip ci]
* Automated using myii/ssf-formula#89
1 parent 5552d51 commit d9b4559

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

.travis.yml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
script:
3434
# Install and run `salt-lint`
3535
- pip install --user salt-lint
36-
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$'
36+
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
3737
| xargs -I {} salt-lint {}
3838
# Install and run `yamllint`
3939
# Need at least `v1.17.0` for the `yaml-files` setting
@@ -43,49 +43,53 @@ jobs:
4343
- gem install rubocop
4444
- rubocop -d
4545
# Install and run `commitlint`
46-
- npm install @commitlint/config-conventional -D
47-
- npm install @commitlint/travis-cli -D
46+
- npm i -D @commitlint/config-conventional
47+
@commitlint/travis-cli
4848
- commitlint-travis
4949

5050
## Define the rest of the matrix based on Kitchen testing
5151
# Make sure the instances listed below match up with
5252
# the `platforms` defined in `kitchen.yml`
5353
# - env: INSTANCE=git-debian-10-master-py3
5454
- env: INSTANCE=deb-debian-10-master-py3
55-
# - env: INSTANCE=git-ubuntu-1804-develop-py3
56-
# - env: INSTANCE=git-centos-7-develop-py3
57-
# - env: INSTANCE=rpm-centos-7-develop-py3
58-
# - env: INSTANCE=git-fedora-30-develop-py3
59-
# - env: INSTANCE=rpm-fedora-30-develop-py3
60-
# - env: INSTANCE=git-opensuse-leap-15-develop-py3
61-
# - env: INSTANCE=git-amazonlinux-2-develop-py2
62-
# - env: INSTANCE=rpm-amazonlinux-2-develop-py2
63-
# - env: INSTANCE=git-arch-base-latest-develop-py2
55+
# - env: INSTANCE=git-ubuntu-1804-master-py3
56+
# - env: INSTANCE=git-centos-8-master-py3
57+
# - env: INSTANCE=rpm-centos-8-master-py3
58+
# - env: INSTANCE=git-fedora-31-master-py3
59+
# - env: INSTANCE=rpm-fedora-31-master-py3
60+
# - env: INSTANCE=git-opensuse-leap-151-master-py3
61+
# - env: INSTANCE=git-amazonlinux-2-master-py2
62+
# - env: INSTANCE=rpm-amazonlinux-2-master-py2
63+
# - env: INSTANCE=git-arch-base-latest-master-py2
64+
# - env: INSTANCE=git-debian-10-2019-2-py3
65+
# - env: INSTANCE=deb-debian-10-2019-2-py3
6466
# - env: INSTANCE=git-debian-9-2019-2-py3
6567
# - env: INSTANCE=deb-debian-9-2019-2-py3
6668
- env: INSTANCE=git-ubuntu-1804-2019-2-py3
67-
# - env: INSTANCE=git-centos-7-2019-2-py3
68-
- env: INSTANCE=rpm-centos-7-2019-2-py3
69-
# - env: INSTANCE=git-fedora-30-2019-2-py3
70-
# - env: INSTANCE=rpm-fedora-30-2019-2-py3
71-
# - env: INSTANCE=git-opensuse-leap-15-2019-2-py3
69+
# - env: INSTANCE=git-centos-8-2019-2-py3
70+
- env: INSTANCE=rpm-centos-8-2019-2-py3
71+
# - env: INSTANCE=git-fedora-31-2019-2-py3
72+
# - env: INSTANCE=rpm-fedora-31-2019-2-py3
73+
# - env: INSTANCE=git-opensuse-leap-151-2019-2-py3
74+
# - env: INSTANCE=git-centos-7-2019-2-py2
75+
# - env: INSTANCE=rpm-centos-7-2019-2-py2
7276
# - env: INSTANCE=git-amazonlinux-2-2019-2-py2
7377
# - env: INSTANCE=rpm-amazonlinux-2-2019-2-py2
7478
- env: INSTANCE=git-arch-base-latest-2019-2-py2
79+
# - env: INSTANCE=git-fedora-30-2018-3-py3
80+
- env: INSTANCE=rpm-fedora-30-2018-3-py3
7581
# - env: INSTANCE=git-debian-9-2018-3-py2
7682
# - env: INSTANCE=deb-debian-9-2018-3-py2
7783
# - env: INSTANCE=git-ubuntu-1604-2018-3-py2
7884
# - env: INSTANCE=git-centos-7-2018-3-py2
7985
# - env: INSTANCE=rpm-centos-7-2018-3-py2
80-
# - env: INSTANCE=git-fedora-29-2018-3-py2
81-
- env: INSTANCE=rpm-fedora-29-2018-3-py2
82-
- env: INSTANCE=git-opensuse-leap-15-2018-3-py2
86+
- env: INSTANCE=git-opensuse-leap-151-2018-3-py2
8387
# - env: INSTANCE=git-amazonlinux-2-2018-3-py2
8488
# - env: INSTANCE=rpm-amazonlinux-2-2018-3-py2
8589
# - env: INSTANCE=git-arch-base-latest-2018-3-py2
8690
# - env: INSTANCE=deb-debian-8-2017-7-py2
8791
# - env: INSTANCE=rpm-centos-6-2017-7-py2
88-
# - env: INSTANCE=rpm-fedora-29-2017-7-py2
92+
# - env: INSTANCE=rpm-fedora-30-2017-7-py2
8993
- env: INSTANCE=rpm-amazonlinux-2-2017-7-py2
9094

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

104108
# Install all dependencies required for `semantic-release`
105-
- npm install @semantic-release/changelog@3 -D
106-
- npm install @semantic-release/exec@3 -D
107-
- npm install @semantic-release/git@7 -D
109+
- npm i -D @semantic-release/changelog@3
110+
@semantic-release/exec@3
111+
@semantic-release/git@7
108112
deploy:
109113
provider: script
110114
skip_cleanup: true

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = {
6363
}
6464

6565
if (typeof commit.hash === `string`) {
66-
commit.hash = commit.hash.substring(0, 7)
66+
commit.shortHash = commit.hash.substring(0, 7)
6767
}
6868

6969
if (typeof commit.subject === `string`) {

0 commit comments

Comments
 (0)