Skip to content

Commit

Permalink
Merge pull request uptrace#190 from uptrace/chore/commitlint
Browse files Browse the repository at this point in the history
chore: add commitlint
  • Loading branch information
vmihailenco committed Sep 11, 2021
2 parents 1f2a2df + d380965 commit 9c6c248
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Changelog

## v1.0.5 - Sep 09 2021

- chore: tweak bundebug colors
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
3 changes: 2 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ do
done

sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
conventional-changelog -p angular -i CHANGELOG.md -s

git checkout -b release/${TAG} master
git add -u
git commit -m "Release $TAG (release.sh)"
git commit -m "chore: release $TAG (release.sh)"
git push origin release/${TAG}

0 comments on commit 9c6c248

Please sign in to comment.