-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
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
{"refs":["Invalid repository names: subgroup / project"]}
Seems it's because of regular expression here
serverless-sentry-plugin/src/index.ts
Line 325 in 8c60ea5
let repository = /[:/]([^/]+\/[^/]+?)(?:\.git)?$/i.exec(origin)?.[1]; |
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 like org/group/subgroup/project
.
Is it a bug? Seems that putting repository name manually into serverless.yaml
fixes it.