Skip to content

contributorsSortAlphabetically doesn't sort alphabetically using bot #416

Closed

Description

@KirstieJane

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 😕

Here's a link to the table: https://github.com/alan-turing-institute/the-turing-way#contributors

To Reproduce
Steps to reproduce the behavior:

  1. Create table of contributors - use the bot for a little while
  2. Add "contributorsSortAlphabetically": true, to the .allcontributorsrc.json file
  3. Ask the All Contributors Bot 🤖 to add a new contributor
  4. 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...

Additional context
This feature was added in all-contributors/cli#249 by @alexwlchan.

Activity

  1. added
    type: bug
    on Apr 10, 2020
  2. KirstieJane commented on Apr 10, 2020

    @KirstieJane
    Author

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

  3. Berkmann18 commented on Apr 10, 2020

    @Berkmann18
    Member

    After getting it to work on your VM, did you still got the error on your terminal?

  4. added
    status: waiting for feedback
    on Apr 10, 2020
  5. KirstieJane commented on Apr 10, 2020

    @KirstieJane
    Author

    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.

  6. Berkmann18 commented on Apr 10, 2020

    @Berkmann18
    Member

    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).

  7. KirstieJane commented on Apr 10, 2020

    @KirstieJane
    Author

    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?

  8. Berkmann18 commented on Apr 10, 2020

    @Berkmann18
    Member

    Is it possible that the bot has the wrong version of the cli?

    That's possibly the case given, I couldn't find any alphabetical-sort related PRs on the bot repo.

  9. baikho commented on Apr 26, 2020

    @baikho
    Contributor

    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.

  10. Berkmann18 commented on May 26, 2020

    @Berkmann18
    Member

    @KirstieJane @baikho Do you both still have this issue with the bot?

  11. C0ZEN commented on May 26, 2020

    @C0ZEN

    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.

  12. Berkmann18 commented on May 27, 2020

    @Berkmann18
    Member

    @C0ZEN Hmm, which one in particular?

  13. C0ZEN commented on May 27, 2020

    @C0ZEN

    @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.

  14. C0ZEN commented on May 27, 2020

    @C0ZEN

    @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?

  15. Berkmann18 commented on May 27, 2020

    @Berkmann18
    Member

    @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.

  16. added
    priority: high
    on Sep 8, 2022
  17. tenshiAMD commented on Sep 25, 2022

    @tenshiAMD
    Member

    @KirstieJane h. is this still relevant today? can you try now? let us know if this still occurs today. Closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: waiting for feedbacktype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions