Skip to content

feat: add semantic commits workflow with conventional commits validation #9

Description

@svg153

Problem

Los commits y títulos de PR no siguen conventional commits de forma consistente.
No hay validación automática del formato del título de PR.

Solution

Implementar un workflow de GitHub Actions que:

  1. Valide el título de la PR con conventional commits (feat:, fix:, docs:, etc.)
  2. Genere commits automáticos con conventional commits basados en el título de la PR
  3. Bloquee merges si el título no sigue el formato
  4. Soporte squash merge para mantener historial limpio

Acceptance Criteria

  • Workflow que valide PR title con regex conventional commits
  • Error claro si el título no empieza con feat|fix|docs|chore|refactor|test|ci
  • Config del repo: squash merge enabled, linear history
  • Config del repo: require PR title to be conventional commits
  • Config del repo: disable merge and rebase merge (squash only)
  • Config del repo: require pull request reviews before merging

Conventional Commits Format

<type>[optional scope]: <description>

[optional body]

[optional footer]

Types

  • feat: new feature
  • fix: bug fix
  • docs: documentation
  • style: formatting, missing semicolons, etc.
  • refactor: code change that neither fixes a bug nor adds a feature
  • test: adding/fixing tests
  • ci: CI/CD changes
  • chore: maintenance tasks

Files to create

  • .github/workflows/pr-title.yml — Validate PR title
  • .github/workflows/release.yml — Auto-release on tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions