Skip to content

Prevent merge of unsynchronized yarn.lock files #30052

Open
@MikeMcC399

Description

@MikeMcC399

What would you like?

The develop branch should be protected against merging commits with unsynchronized yarn.lock files.

Running yarn on any commit in the develop branch, or destined for this branch, should not produce any differences in yarn.lock.

Why is this needed?

If commits with unsynchronized yarn.lock files are merged into the develop branch then follow-on PRs are forced into cleaning up the mismatch of their predecessor(s) leading to a confusing change history.

Other

Examples of PRs merged with unsynchronized yarn.lock files:

Renovate

See

Examples caused by Renovate:

Manual error

Caused by manual change to a dependency in a package.json file without running yarn:

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: choreWork is required w/ no deliverable to end user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions