Skip to content

Commit adcdbb1

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- pip install --user yamllint>=1.17.0
4444
- yamllint -s .
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
# Run the `rubocop` linter in a separate job that is allowed to fail
5050
# Once these lint errors are fixed, this can be merged into a single job
@@ -106,9 +106,9 @@ jobs:
106106
- maintainer contributor
107107

108108
# Install all dependencies required for `semantic-release`
109-
- npm install @semantic-release/changelog@3 -D
110-
- npm install @semantic-release/exec@3 -D
111-
- 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
112112
deploy:
113113
provider: script
114114
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)