bitbucket-issue-migration icon indicating copy to clipboard operation
bitbucket-issue-migration copied to clipboard

Creates invalid BitBucket user links for users without username

Open tbm opened this issue 5 years ago • 2 comments

I got a wrong link like this:

{'body': '**[Original report](https://bitbucket.org/blais/beancount/issue/91) '
         'by Dominik Aumayr (Bitbucket: [Dominik '
         'Aumayr](https://bitbucket.org/Dominik Aumayr), ).**\n'

If you go to the issue at https://bitbucket.org/blais/beancount/issues/91 and hover over his name, you see his name but no user name. Whereas if I go to https://bitbucket.org/blais/beancount/issues/92 and hover over that user, I see a name and a user name.

So it seems some people don't have user names on BitBucket. In that case you shouldn't create a BitBucket link.

tbm avatar May 19 '20 07:05 tbm

Here's a weird example: the first comment at https://bitbucket.org/blais/beancount/issues/100

Blind Gaenger looks like a nick name, Bernd Jünger like the real name, but it's not clear if either is a valid BitBucker username.

tbm avatar May 19 '20 08:05 tbm

Names that include spaces (like "Dominik Aumayr") also don't display correctly as Markup links on Github:

image

It's probably best to just display these names without the link.

magreenblatt avatar Mar 10 '23 21:03 magreenblatt