Draft: fix failing pipeline

Summary

The pipeline was failing due to:

  1. 3 Vale linting errors in docs/design-documents/indexing/code_indexing.md
  2. Commitlint validation errors in the MR title check caused by the "Draft: " prefix not being stripped before validation

Changes

  • Fixed Vale linting errors in code_indexing.md:

    • Line 100: Removed possessive form - changed GitLab's Git storage serviceGitLab Git storage service
    • Line 204: Changed code fence language from ```text ```plaintext (allowed language)
    • Line 357: Changed code fence language from ```text ```plaintext (allowed language)
  • Fixed MR title check in scripts/check-mr-title.sh:

    • Added logic to strip "Draft: " prefix (case-insensitive) before passing title to commitlint
    • Handles "Draft:", "draft:", and "DRAFT:" prefixes
    • Preserves titles without the prefix unchanged

Verification

All fixes were verified by:

  • ✓ Examining file contents to confirm changes at the correct lines
  • ✓ Testing the sed command with multiple test cases (Draft:, draft:, DRAFT:, no prefix)
  • ✓ Confirming alignment with Vale and commitlint configuration rules

Expected Outcome:

  • check-docs job will pass with 0 Vale errors
  • mr-title-check job will pass with valid commitlint validation
  • ✓ Pipeline will proceed to subsequent stages

Fixes failing pipeline on !366

Session 3007318

Edited by Duo Fix CI/CD Pipeline

Merge request reports

Loading