Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while adding user with - in the name #292

Closed
Wei-1 opened this issue Feb 10, 2020 · 10 comments
Closed

Error while adding user with - in the name #292

Wei-1 opened this issue Feb 10, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@Wei-1
Copy link

Wei-1 commented Feb 10, 2020

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

@Wei-1 Wei-1 added the bug Something isn't working label Feb 10, 2020
@marekrozmus
Copy link

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

@allcontributors
Copy link
Contributor

@marekrozmus

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

@marekrozmus
Copy link

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

@Wei-1
Copy link
Author

Wei-1 commented Mar 27, 2020

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

@Klaas-
Copy link

Klaas- commented Mar 27, 2020

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

@baikho
Copy link
Contributor

baikho commented Apr 26, 2020

@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/all-contributors#380 (comment)

@baikho
Copy link
Contributor

baikho commented Apr 26, 2020

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

@jakebolam
Copy link
Contributor

Thank you @Wei-1

@jakebolam
Copy link
Contributor

Fixed in #307

@Klaas-
Copy link

Klaas- commented Apr 28, 2020

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants