File tree Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ [tool .commitizen ]
2
+ name = " cz_conventional_commits"
3
+ version = " 1.0.6"
4
+ tag_format = " v$version"
Original file line number Diff line number Diff line change
1
+ name : Bump
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+
8
+ ci :
9
+ uses : ./.github/workflows/ci.yml
10
+
11
+ bump :
12
+ runs-on : ubuntu-latest
13
+
14
+ needs :
15
+ - ci
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+ ssh-key : " ${{ secrets.DEPLOY_SSH_KEY }}"
22
+ - run : pip3 install Commitizen==2.27.1
23
+
24
+ -
run :
git config --local user.email "[email protected] "
25
+ - run : git config --local user.name "github-actions"
26
+
27
+ - run : cz bump --changelog
28
+
29
+ - run : git push
30
+ - run : git push --tags
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches :
9
9
- main
10
+ workflow_call :
10
11
11
12
12
13
jobs :
25
26
run : go build -v
26
27
- name : go test
27
28
run : go test -test.v -race -cover
29
+
30
+ conventional-commits :
31
+ runs-on : ubuntu-latest
32
+
33
+ steps :
34
+ - uses : actions/checkout@v3
35
+ with :
36
+ fetch-depth : 0
37
+ - run : pip3 install -U Commitizen
38
+ # The commit hash here is that of the commit where we started using conventional commits.
39
+ - run : cz check --rev-range deebab92..HEAD
Original file line number Diff line number Diff line change @@ -84,3 +84,15 @@ case *MyError:
84
84
var me MyError
85
85
ok := errors.As (err, &me)
86
86
```
87
+
88
+ ## Contributing
89
+
90
+ Do you think you have found a bug? Then please report it via the Github issue tracker. Make sure to
91
+ attach any problematic files that can be used to reproduce the issue. Such files are also used to
92
+ create regression tests that ensure that your bug will never return.
93
+
94
+ When submitting pull requests, please prefix your commit messages with ` fix: ` or ` feat: ` for bug
95
+ fixes and new features respectively. This is the
96
+ [ Conventional Commits] ( https://www.conventionalcommits.org/en/v1.0.0/ ) scheme that is used to
97
+ automate some maintenance chores such as generating the changelog and inferring the next version
98
+ number.
You can’t perform that action at this time.
0 commit comments