Skip to content

Commit f072717

Browse files
committed
fix(release.config.js): use full commit hash in commit link [skip ci]
* Automated using #89
1 parent d29e5cd commit f072717

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
script:
2323
# Install and run `salt-lint`
2424
- pip install --user salt-lint
25-
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$'
25+
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
2626
| xargs -I {} salt-lint {}
2727
# Install and run `yamllint`
2828
# Need at least `v1.17.0` for the `yaml-files` setting
@@ -32,8 +32,8 @@ jobs:
3232
- gem install rubocop
3333
- rubocop -d
3434
# Install and run `commitlint`
35-
- npm install @commitlint/config-conventional -D
36-
- npm install @commitlint/travis-cli -D
35+
- npm i -D @commitlint/config-conventional
36+
@commitlint/travis-cli
3737
- commitlint-travis
3838

3939
## Define the release stage that runs `semantic-release`
@@ -50,9 +50,9 @@ jobs:
5050
- maintainer contributor
5151

5252
# Install all dependencies required for `semantic-release`
53-
- npm install @semantic-release/changelog@3 -D
54-
- npm install @semantic-release/exec@3 -D
55-
- npm install @semantic-release/git@7 -D
53+
- npm i -D @semantic-release/changelog@3
54+
@semantic-release/exec@3
55+
@semantic-release/git@7
5656
deploy:
5757
provider: 'script'
5858
skip_cleanup: true

pre-commit_semantic-release.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,3 @@ sed -i -e '1,4s/-/=/g' CHANGELOG.rst
2828

2929
# Return back to the main directory
3030
cd ..
31-
32-
33-
###############################################################################
34-
# (C) Update `ssf/defaults.yaml` with `${nextRelease.version}`
35-
###############################################################################
36-
V_REPR=v${1}
37-
sed -i -e "s_^\(\s\+body: '\* Automated using \`ssf-formula\` (\).*\()'\)_\1${V_REPR}\2_" ssf/defaults.yaml

release.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
prepareCmd: 'sh ./pre-commit_semantic-release.sh ${nextRelease.version}',
1515
}],
1616
['@semantic-release/git', {
17-
assets: ['*.md', 'docs/*.rst', 'FORMULA', 'ssf/defaults.yaml'],
17+
assets: ['*.md', 'docs/*.rst', 'FORMULA'],
1818
}],
1919
'@semantic-release/github',
2020
],
@@ -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)