You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "leric (via GitHub)" <gi...@apache.org> on 2023/08/31 04:58:30 UTC
[GitHub] [incubator-devlake] leric opened a new issue, #5991: [Bug][tapd] error on extract namespace from repository url
leric opened a new issue, #5991:
URL: https://github.com/apache/incubator-devlake/issues/5991
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
Failed to extract namespace part of a repo url like : https://gitlab.com/merico-dev/ee/tapd-test.git
Namespace should be "merico-dev/ee", it only extracted first segment in url path "merico-dev".

### What do you expect to happen
Use url path without the last segment as namespace
### How to reproduce
repository url path has more than 2 segments, e.g. https://gitlab.com/merico-dev/ee/tapd-test.git has 3 segments "merico-dev", "ee", "tapd-test.git"
### Anything else
_No response_
### Version
v0.18
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh closed issue #5991: [Bug][tapd] error on extract namespace from repository url
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh closed issue #5991: [Bug][tapd] error on extract namespace from repository url
URL: https://github.com/apache/incubator-devlake/issues/5991
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] d4x1 commented on issue #5991: [Bug][tapd] error on extract namespace from repository url
Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5991:
URL: https://github.com/apache/incubator-devlake/issues/5991#issuecomment-1700379973
I think this procedure will work when you want to extract issue's relation commits info when you using jira.
Is it right ? @leric (If yes, please update the description, and make it clear and understable.)
As to the question you have mentioned, the namespace field is extract by a regexp, and it's configurated in blueprint or scope's config. Please paste your config content, so we have dive into it.
cc @narrowizard
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] d4x1 commented on issue #5991: [Bug][tapd] error on extract namespace from repository url
Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5991:
URL: https://github.com/apache/incubator-devlake/issues/5991#issuecomment-1705885514
> remotelinkRepoPattern
You are right. I only find `remotelinkRepoPattern` in Jira plugin.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] leric commented on issue #5991: [Bug][tapd] error on extract namespace from repository url
Posted by "leric (via GitHub)" <gi...@apache.org>.
leric commented on issue #5991:
URL: https://github.com/apache/incubator-devlake/issues/5991#issuecomment-1700384711
Not in this case, it just split out the first segment of url path:
https://github.com/apache/incubator-devlake/pull/5994/files#diff-d28cea07c6ce6ec7e3a62264712c15c4f156bf04abc53c362353039b512bc830
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] narrowizard commented on issue #5991: [Bug][tapd] error on extract namespace from repository url
Posted by "narrowizard (via GitHub)" <gi...@apache.org>.
narrowizard commented on issue #5991:
URL: https://github.com/apache/incubator-devlake/issues/5991#issuecomment-1705884882
I don't think there are configuration like jira's `remotelinkRepoPattern` in tapd plugin. @d4x1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org