Skip to content

Match components using path prefixes, not string prefixes. #20

@charypar

Description

@charypar

When filtering changed files to components (

if strings.HasPrefix(change, component) {
) the paths are matched on a sub-string. This sometimes mismatches components if they share a common sub-string (e.g. my-component and my-component-v2).

The correct way is to split the path to individual segments and look for a sub-list.

This is also the cause of issue fixed by #18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions