You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
contributorsSortAlphabetically doesn't sort alphabetically using bot #416
Describe the bug
I've added "contributorsSortAlphabetically": true, to my repo's .allcontributorsrc.json file. After I added a new contributor the table stayed in the same order and added the new contributor to the end of the table 😕
Create table of contributors - use the bot for a little while
Add "contributorsSortAlphabetically": true, to the .allcontributorsrc.json file
Ask the All Contributors Bot 🤖 to add a new contributor
Receive a pull request from the bot which adds the contributor to the json file and the rendered table, but which does not re-order the table or file.
Expected behavior
I was expecting the table in the README file to be sorted in alphabetical order - although I wasn't sure if it would be ordered by username, first name or last name...
A little update to this - it works for the command line tool! I've got that installed (I found the cli really hard to install on windows but I switched to a linux virtual machine and its going great over there!)
The terminal always worked - it’s installing all the requirements that I found really hard for windows. This issue is about the bot not ordering the table when it opens a PR. Sorry for mixing two comments together.
Ha okay, the bot relies on the CLI for ordering so unless you don't have an up-to-date version of it, then it shouldn't a problem (I could be wrong tho).
Same here, the cli works fine and takes these config options into account, but the bot doesn't.
I think we need to update the bot to the latest cli version (v6.14.2). It's still pointing to v6.11.2 in the yarn.lock file.
I also have the error. In fact, I never see this feature works. @Berkmann18 could give it a try if you want by adding a fake contributor to my project.
@Berkmann18 on this project I use the bot to add contributors. The configuration for contributorsSortAlphabetically is set to true however when I add a contributor the list in .all-contributorsrc and in the ``README.md` the new contributor is always added at the end. The sort is not working.
@Berkmann18 following the PR you opened on my project, am I right to assume that the problem is related to this issue and that the fix you provided (if I understood correctly what you did) did not solved it?
@C0ZEN I didn't provide any fix, I only opened an issue to not populate your others and closed it to not clog your issue list.
The PR was the one made by the bot.
I have restricted permissions preventing me to submit a PR to fix that issue so I asked on our Slack server to see if anyone could.
Activity
KirstieJane commentedon Apr 10, 2020
A little update to this - it works for the command line tool! I've got that installed (I found the cli really hard to install on windows but I switched to a linux virtual machine and its going great over there!)
Berkmann18 commentedon Apr 10, 2020
After getting it to work on your VM, did you still got the error on your terminal?
KirstieJane commentedon Apr 10, 2020
The terminal always worked - it’s installing all the requirements that I found really hard for windows. This issue is about the bot not ordering the table when it opens a PR. Sorry for mixing two comments together.
Berkmann18 commentedon Apr 10, 2020
Ha okay, the bot relies on the CLI for ordering so unless you don't have an up-to-date version of it, then it shouldn't a problem (I could be wrong tho).
KirstieJane commentedon Apr 10, 2020
Sorry - I think I don’t follow your point. When I was using the bot it did not take into account the flag for the alphabetical ordering.
Is it possible that the bot has the wrong version of the cli?
Berkmann18 commentedon Apr 10, 2020
That's possibly the case given, I couldn't find any alphabetical-sort related PRs on the bot repo.
baikho commentedon Apr 26, 2020
Same here, the cli works fine and takes these config options into account, but the bot doesn't.
I think we need to update the bot to the latest cli version (
v6.14.2). It's still pointing tov6.11.2in the yarn.lock file.Berkmann18 commentedon May 26, 2020
@KirstieJane @baikho Do you both still have this issue with the bot?
C0ZEN commentedon May 26, 2020
I also have the error. In fact, I never see this feature works. @Berkmann18 could give it a try if you want by adding a fake contributor to my project.
Berkmann18 commentedon May 27, 2020
@C0ZEN Hmm, which one in particular?
C0ZEN commentedon May 27, 2020
@Berkmann18 on this project I use the bot to add contributors. The configuration for
contributorsSortAlphabeticallyis set totruehowever when I add a contributor the list in.all-contributorsrcand in the ``README.md` the new contributor is always added at the end. The sort is not working.C0ZEN commentedon May 27, 2020
@Berkmann18 following the PR you opened on my project, am I right to assume that the problem is related to this issue and that the fix you provided (if I understood correctly what you did) did not solved it?
Berkmann18 commentedon May 27, 2020
@C0ZEN I didn't provide any fix, I only opened an issue to not populate your others and closed it to not clog your issue list.
The PR was the one made by the bot.
I have restricted permissions preventing me to submit a PR to fix that issue so I asked on our Slack server to see if anyone could.
tenshiAMD commentedon Sep 25, 2022
@KirstieJane h. is this still relevant today? can you try now? let us know if this still occurs today. Closing this for now.