Derive project name from URL if importing project from URL
Resources
When creating a new project, and importing "Repo by URL", we should be able to derive a default project name from the last portion of the URL.
e.g. for https://gitlab.com/gitlab-examples/minimal-ruby-app.git
, the derived name would be minimal-ruby-app
.
/cc @mydigitalself
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Mike Bartlett added ~1222504 label
added ~1222504 label
- Developer
@markpundsack schedule for 9.0?
- Contributor
@sytses This is probably Platform area, not @markpundsack's. 9.0 is pretty full up with performance and API work. 9.1 should see a return to a lot more scope available in releases.
- Developer
@mydigitalself 9.3?
- Contributor
@sytses do you need it as part of the demo? happy to look at it for 9.3, just trying to get a sense of priority against some other issues.
- Developer
@mydigitalself every click saved during the demo helps greatly
- Mike Bartlett changed milestone to %9.4
changed milestone to %9.4
- Mike Bartlett added Deliverable label
added Deliverable label
- Contributor
@mydigitalself @markpundsack What would this look like exactly, since https://gitlab.com/projects/new has you enter the project name/path before the import URL? This is also definitely more frontend than backend.
- Author Contributor
@DouweM I think the minimal change would be that if you enter in the URL while the project name/path is blank, then fill in the project name/path with the relevant part from the git URL. As you point out, it won't be totally obvious, but if you know about it, it'll help. And for demos in particular, it'll save time.
I don't think rearranging the order in the UI makes sense, at least not without a LOT more thought.
- Contributor
@markpundsack Sounds good.
- Jacob Schatz changed milestone to %9.5
changed milestone to %9.5
- Filipa Lacerda changed the description
changed the description
- Inactive Account assigned to @winh
assigned to @winh
- Contributor
@markpundsack Just to make sure, these would be the derived names?
URL Name https://gitlab.company.com/group/project.git project https://gitlab.company.com/group/project/.git project https://username:password@gitlab.company.com/group/project.git project https://gitlab.company.com/group/project project https://gitlab.company.com/group/project/ project https://gitlab.company.com/group/project/#makes-no-sense project https://gitlab.company.com/group/project/?some=parameter project git@gitlab.company.com:group/project.git project some://nonsense/with/slashes/ slashes some://nonsense/with/.git/ with The rules being:
- remove
#
and everything afterwards - remove
?
and everything afterwards - remove trailing slashes
- remove trailing
.git
- take everything after the last slash
Edited by Inactive Account - remove
- Inactive Account mentioned in merge request !13131 (merged)
mentioned in merge request !13131 (merged)
- Author Contributor
@winh That sounds good to me!
- Clement Ho closed via merge request !13131 (merged)
closed via merge request !13131 (merged)
- Clement Ho mentioned in commit 0edf2b0d
mentioned in commit 0edf2b0d