all-contributors / all-contributors/cli

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

オープン
#371 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
type: bug
主要言語
JavaScript
スター
425
フォーク
149
PR マージ指標
30日以内にマージされた PR はありません

説明

**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!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。