Skip to content

fix(ci): enforce commitlint instead of continue-on-error - #1384

Merged
afurious merged 1 commit into
Crowdfunding-DApp:mainfrom
MusaTheDev001:fix/enforce-commitlint
Aug 24, 2026
Merged

fix(ci): enforce commitlint instead of continue-on-error#1384
afurious merged 1 commit into
Crowdfunding-DApp:mainfrom
MusaTheDev001:fix/enforce-commitlint

Conversation

@MusaTheDev001

Copy link
Copy Markdown
Contributor

PR summary

Title: fix(ci): enforce commitlint instead of continue-on-error

Summary

CONTRIBUTING.md says commit messages must follow conventional commits, .commitlintrc.json encodes that, and rust_ci.yml runs commitlint on every PR - but the step carried continue-on-error: true, so a failing lint still reported green. The convention was documented, tooled, and checked, yet never binding. 25 of the last 100 non-merge commits fail the config.

Changes

  • .github/workflows/rust_ci.yml: moved commit linting out of the check job into its own commitlint job (Lint commit messages) and dropped continue-on-error. Guarded with if: github.event_name == 'pull_request' so pushes to main/develop, which replay already-merged history, can't fail on commits nobody can rewrite. A separate job also keeps a bad subject line from hiding Rust build/test results.
  • CONTRIBUTING.md: type list now matches the config (added style, refactor, perf, revert); documented the two undocumented rules (no all-caps subject, header ≤ 100 chars); stated that only PR commits are linted, older history is exempt, and merge commits are ignored; added the local self-check command.

Closes

Closes #1382

@afurious

Copy link
Copy Markdown
Collaborator

fix your failed ci checks

@MusaTheDev001
MusaTheDev001 force-pushed the fix/enforce-commitlint branch from 4636111 to 6a17005 Compare August 22, 2026 17:51
@afurious
afurious merged commit e1cfd3c into Crowdfunding-DApp:main Aug 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audit #80] commitlint CI step runs with continue-on-error: true, never enforcing the convention

2 participants