Skip to content

Enhance workflows: commit lint, PR title lint, and optional checks #561

@akrem-chabchoub

Description

@akrem-chabchoub

Summary

Align beekeeper CI with ethersphere/bee by adding commit message linting, PR title linting, and optionally other quality checks. This keeps conventions consistent across swarm repos and catches bad commits/PR titles before merge.

Current state

  • go.yml: build, lint (golangci-lint), vet, test on PR; matrix for ubuntu/macos/windows.
  • release.yaml: goreleaser on tag push.

No commit or PR title checks today.

Proposed additions

1. Commit lint (on PR)

2. PR title lint

  • Ensure PR title follows the same convention as commits (so merge commit message is valid).
  • Reference: bee’s pr-title.yml runs on pull_request (opened, synchronize, reopened, edited), uses @commitlint/cli + @commitlint/config-conventional and pipes github.event.pull_request.title through commitlint.
  • Add a dedicated workflow (e.g. .github/workflows/pr-title.yml) or a job in an existing workflow that runs this check.

3. Optional (nice-to-have)

  • Paths / branches: like bee, optionally restrict when go workflow runs (e.g. paths-ignore, or only certain branches) to save CI time.
  • Whitespace / tidy: bee runs make check-whitespace and katexochen/go-tidy-check; add if we want to enforce go mod tidy and whitespace.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions