Skip to content

Commit

Permalink
Document changelog under Developing section
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Sep 20, 2021
1 parent 3dcf1b0 commit 2b6b8f7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,32 @@ documented types include
}
```

## Developing

### Changelog

When releasing a new version the [`CHANGELOG.md`](./CHANGELOG.md) should be updated. There are three scripts in `package.json` for bumping the version:

- `npm run changelog:patch` -> add new patch section
- `npm run changelog:minor` -> add new minor section
- `npm run changelog:major` -> add new major section

Additionally, you can do `npm run markdown:fix`, which will expand references to pull requests and github users to urls. For example, referencing `@hackergrrl` would expand to `https://github.com/hackergrrl` and referencing `#314` would expand to `https://github.com/cabal-club/cabal-core/pulls/314`.

To release a new version you would typically do something like:

```
npm run changelog:patch
# Manually fill in details and/or tweak CHANGELOG.md
npm run changelog:fix
git add CHANGELOG.md && git commit -m 'Update changelog for x.y.z'
npm version patch
git push && git push --tags
npm publish
```

Try to keep the pull request titles short and descriptive and the changelog will automatically reflect this. A pull request may contain many small commits, but if it's squashed, the git history and the changelog will look clean. At the same time, all commits will still be around on GitHub if digging into details is required.

## License

AGPLv3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"changelog:patch": "hallmark bump patch",
"changelog:minor": "hallmark bump minor",
"changelog:major": "hallmark bump major",
"changelog:fix": "hallmark --fix"
"markdown:fix": "hallmark --fix"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2b6b8f7

Please sign in to comment.