Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: cz: only check commits in PR #80

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
run: go test -test.v -race -cover ./...

conventional-commits:
if: github.event_name == 'pull_request' # Only check PRs.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: pip3 install -U Commitizen
# The commit hash here is that of the commit where we started using conventional commits.
- run: cz check --rev-range deebab92..HEAD
- run: cz check --rev-range origin/${{ github.base_ref }}..HEAD
2 changes: 1 addition & 1 deletion errorlint/allowed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Test_isAllowedErrAndFunc(t *testing.T) {
}

func Benchmark_isAllowedErrAndFunc(b *testing.B) {
var benchCases = []struct {
benchCases := []struct {
desc string
err string
fun string
Expand Down
Loading