Skip to content

Error while adding user with - in the name #292

Closed

Description

@Wei-1

Describe the bug
The bot add @wei instead of @Wei-1 while using the command in a PR.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any repo with @all-contributors bot
  2. Use @all-contributors please add Wei-1 for maintenance
  3. Check the PR created by @all-contributors bot
  4. See that it add @wei instead of @Wei-1

Expected behavior
It should add @Wei-1 instead

Screenshots
Curt-Park/rainbow-is-all-you-need#12

Additional context
Probably caused by - sign

Activity

  1. added
    type: bug
    on Feb 10, 2020
  2. marekrozmus commented on Mar 26, 2020

    @marekrozmus

    @Wei-1 bot needs @ before user name. Had same problem - check here: all-contributors/cli#225 (comment)

    So you should use: Use @all-contributors please add @Wei-1 for maintenance and it should work correctly.

  3. allcontributors commented on Mar 26, 2020

    @allcontributors
    Contributor

    @marekrozmus

    I've put up a pull request to add @Wei-1! 🎉

  4. marekrozmus commented on Mar 26, 2020

    @marekrozmus

    @Wei-1 as you can see above ;)

    Please somebody delete that PR :D

    BTW: How did you manage to create this issue without genrating new bot PR :) ?

  5. Wei-1 commented on Mar 27, 2020

    @Wei-1
    Author

    That's a very good question @marekrozmus I have no idea though..
    btw, should we close this issue?

  6. Klaas- commented on Mar 27, 2020

    @Klaas-

    I think there is still an issue with "-" see this:
    ComplianceAsCode/content#5355 (comment)
    And it created ComplianceAsCode/content#5480

  7. baikho commented on Apr 26, 2020

    @baikho
    Contributor

    @Wei-1 as you can see above ;)

    Please somebody delete that PR :D

    BTW: How did you manage to create this issue without genrating new bot PR :) ?

    I think that's because the issue / PR needs to exist before quoting the bot, see all-contributors/allcontributors.org#380 (comment)

  8. baikho commented on Apr 26, 2020

    @baikho
    Contributor

    I believe this needs fixing in parseAddComment(), but on a side note; GitHub won't let you register such account names (anymore?) as per:

    Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen.

    Screenshot 2020-04-26 at 23 18 39

  9. jakebolam commented on Apr 28, 2020

    @jakebolam
    Contributor

    Thank you @Wei-1

  10. jakebolam commented on Apr 28, 2020

    @jakebolam
    Contributor

    Fixed in #307

  11. Klaas- commented on Apr 28, 2020

    @Klaas-

    Does that make my username valuable? :) thanks for fixing @baikho

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

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions