Merge pull request #1895 from go-redis/fix/conv-commits

chore: use conventional commits and auto-generate changelog
This commit is contained in:
Vladimir Mihailenco 2021-09-18 10:01:16 +03:00 committed by GitHub
commit c575887613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 6 deletions

11
.github/workflows/commitlint.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4

View File

@ -12,4 +12,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
body: Check CHANGELOG.md for details body:
Please refer to
[CHANGELOG.md](https://github.com/go-redis/redis/blob/master/CHANGELOG.md) for details

View File

@ -1,8 +1,3 @@
# Changelog
> :heart:
> [**Uptrace.dev** - All-in-one tool to optimize performance and monitor errors & logs](https://uptrace.dev)
## v8.11 ## v8.11
- Remove OpenTelemetry metrics. - Remove OpenTelemetry metrics.

8
package.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "redis",
"version": "0.0.0",
"main": "index.js",
"repository": "git@github.com:go-redis/redis.git",
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
"license": "BSD-2-clause"
}

View File

@ -58,6 +58,9 @@ do
done done
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
sed --in-place "s/\(\"version\": \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./package.json
conventional-changelog -p angular -i CHANGELOG.md -s
git checkout -b release/${TAG} master git checkout -b release/${TAG} master
git add -u git add -u