We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Code Owners section of the People card does not show, and the console shows the following error:
failed to load codeowners Error: @graham.daryl is not a valid owner name in rule * @user.name
The regex used to validate usernames here does not appear to allow periods in the username: https://github.com/immobiliare/backstage-plugin-gitlab/blob/main/packages/gitlab/src/components/utils.tsx#L116
The Gitlab documentation says they are an allowed character: https://docs.gitlab.com/ee/user/profile/
Going by the naming rules (which also say usernames cannot start with _-.), maybe the first capture group should look something like this?
_-.
- (^@[a-zA-Z0-9_\-/]*$) + (^@[a-zA-Z0-9][a-zA-Z0-9_\-/\.]*$)
The text was updated successfully, but these errors were encountered:
Hi @darylgraham, Thank you for the issue. You are right! We can simplify all the regex in something like:
^@[a-zA-Z0-9][a-zA-Z0-9_\-\.]*([a-zA-Z0-9_\-]|[a-zA-Z0-9_])$
following the official regex: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/path_regex.rb#L137
Sorry, something went wrong.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Successfully merging a pull request may close this issue.
The Code Owners section of the People card does not show, and the console shows the following error:
failed to load codeowners Error: @graham.daryl is not a valid owner name in rule * @user.name
The regex used to validate usernames here does not appear to allow periods in the username: https://github.com/immobiliare/backstage-plugin-gitlab/blob/main/packages/gitlab/src/components/utils.tsx#L116
The Gitlab documentation says they are an allowed character: https://docs.gitlab.com/ee/user/profile/
Going by the naming rules (which also say usernames cannot start with
_-.
), maybe the first capture group should look something like this?The text was updated successfully, but these errors were encountered: