all-contributors / all-contributors/cli

`add` command overrides other contributions if given any existing ones

Đang mở
#371 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
type: bug
Ngôn ngữ chính
JavaScript
Star
425
Fork
149
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**

Running `npx all-contributors-cli add <...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 https://github.com/all-contributors/cli/issues/355, but without a certain reproduction. We have that now!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.