Commit d33dd22
authored
fix(ci): stop all-contributors bot from stripping contributions (#381)
The pr-sort workflow ran an unconditional `all-contributors add <user>
conference` before the jq guard meant to prevent re-adding an existing
contribution type. all-contributors-cli replaces a contributor's entire
contributions array when re-adding a type they already have, so the
unconditional call collapsed contributors (e.g. JesperDramsch: 17 types ->
["conference"]) on every run. The guard then read the already-stripped
file, found "conference" present, and skipped the second add — silently
defeating the fix.
Remove the unconditional add so the jq guard is the only add path: skip
when the contributor already has "conference", add only for genuinely new
contributors. Fixes the corruption behind the closed PRs #371 and #379.1 parent 012c7f4 commit d33dd22
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | 87 | | |
90 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
0 commit comments