cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

CI: add commit message style check workflow

Open tuhaihe opened this issue 6 months ago • 1 comments

This commit introduces a new GitHub Actions workflow that checks commit messages in pull requests against recommended style guidelines.

The workflow verifies:

  • Title length (50 characters or less)
  • Title starts with uppercase letter
  • Body is not empty
  • Body lines don't exceed 72 characters

The check provides helpful suggestions to contributors without preventing PR merging.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • [ ] Bug fix (non-breaking change)
  • [ ] New feature (non-breaking change)
  • [ ] Breaking change (fix or feature with breaking changes)
  • [ ] Documentation update

Breaking Changes

Test Plan

  • [ ] Unit tests added/updated
  • [ ] Integration tests added/updated
  • [ ] Passed make installcheck
  • [ ] Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


tuhaihe avatar Jun 20 '25 03:06 tuhaihe

  • Good case: https://github.com/apache/cloudberry/actions/runs/17064472353?pr=1177
  • Bad test case: https://github.com/tuhaihe/cloudberrydb/actions/runs/17063585469

tuhaihe avatar Aug 19 '25 08:08 tuhaihe