Skip to content

ci: Commit Linter needs to allow multiple packages listed in scope #581

Description

@virkt25

Overview

A key benefit of lerna is the ability of being able to change multiple packages if needed in one PR to make fixes and feature implementation easier.

Conventional Commit message guidelines require the header format to be <type>(<scope>): <description> where scope is the affected package name. Travis CI enforces this convention using commitlint.

Depending on the outcome of https://github.com/marionebl/commitlint/issues/75 we need to create the new scope-types rule (if / when) there is a plugin API available for commitlint
OR
We need to implement our own solution that can leverage conventional-commits-parser with a custom headerPattern (adding , to the default pattern). Then split it and check against available packages (check commitlint's lerna config for getting scope-enum automatically).

Acceptance Criteria

  • One of the above two solutions (or another) implemented that allows me to make a commit with no scope, 1 package in scope, 2 or more packages in scope. All packages in scope must be valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    developer-experienceIssues affecting ease of use and overall experience of LB users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions