Skip to content

add command overrides other contributions if given any existing ones #371

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Describe the bug

Running npx all-contributors-cli add <username> <...contributions> with any existing contributions seems to override all others

To Reproduce

See https://github.com/JoshuaKGoldberg/repros/tree/all-contributors-cli-adding-existing-contributions.

Steps to reproduce the behavior:

  1. Set up a project with an .all-contributorsrc containing a contributor with >=2 contributions
  2. Run npx all-contributors-cli add to give them a contribution they already have
  3. See that their list of contributions has shrunk to include only the existing contribution

Expected behavior
Their new list of contributions should contain all added and existing contributions.

Additional context
Originally filed as #355, but without a certain reproduction. We have that now!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions