Skip to content

Commit fbfdf5e

Browse files
spudheadcbcoe
authored andcommitted
doc : added an example of a postcommit hook (#232)
1 parent 371d992 commit fbfdf5e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,19 @@ Simply add the following to your package.json to configure lifecycle scripts:
178178
}
179179
```
180180

181+
As an example to change from using GitHub to track your items to using your projects Jira use a
182+
`postchangelog` script to replace the url fragment containing 'https://github.com/`myproject`/issues/'
183+
with a link to your Jira - assuming you have already installed [replace](https://www.npmjs.com/package/replace)
184+
```json
185+
{
186+
"standard-version": {
187+
"scripts": {
188+
"postchangelog": "replace 'https://github.com/myproject/issues/' 'https://myjira/browse/' CHANGELOG.md"
189+
}
190+
}
191+
}
192+
```
193+
181194
### Skipping lifecycle steps
182195

183196
You can skip any of the lifecycle steps (`bump`, `changelog`, `commit`, `tag`),

0 commit comments

Comments
 (0)