-
Notifications
You must be signed in to change notification settings - Fork 27
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
Repository name capturing from remote is wrong #65
Comments
Indeed, this probably is a bug. The original code is several years old and I assume the format used by GitLab has slightly changed over time. I don't see why we would need to limit the number of slashes ( Do you have some availability to submit a PR for review? Otherwise I'll see when I get to it in the next few weeks, as I have currently no way of testing changes to the plugin with GitLab. |
Yes, definitely, why not, it's one-liner - I just not sure if |
yep having this issue too. will have a play with the regex and post a PR if have any luck |
actually just realised getting the same erro, but i'm using git and it's not putting the spaces around the slash only for gitlab. is git the same? |
I have repository in Gitlab called
[email protected]:org/group/subgroup/project.git
.When trying to use the plugin with releases configuration I am bad request from Sentry with similar message
Seems it's because of regular expression here
serverless-sentry-plugin/src/index.ts
Line 325 in 8c60ea5
I am not sure what was the motivation for such capturing group as
([^/]+\/[^/]+?)
, so me just putting(.+?)
is enough and works... this expression allows only one/
symbol, though it may be few of them in between. What I need is to extract full repository name likeorg/group/subgroup/project
.Is it a bug? Seems that putting repository name manually into
serverless.yaml
fixes it.The text was updated successfully, but these errors were encountered: