-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(optimize-project-search): Enhance project search to extract proj…
…ect name from GitLab URLs (#61) - Modify searchProjects function to handle GitLab repository URLs - Extract project name when search input is a full GitLab repository URL - Maintain existing behavior for non-URL search inputs
- Loading branch information
Showing
4 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ export const projectFixture: GitlabProjectDetails = { | |
visibility: 'private', | ||
ssh_url_to_repo: '[email protected]:diaspora/diaspora-project-site.git', | ||
http_url_to_repo: 'http://example.com/diaspora/diaspora-project-site.git', | ||
web_url: 'http://example.com/diaspora/diaspora-project-site', | ||
web_url: 'https://my-git.domain.com/diaspora/diaspora-project-site', | ||
readme_url: | ||
'http://example.com/diaspora/diaspora-project-site/blob/master/README.md', | ||
'https://my-git.domain.com/diaspora/diaspora-project-site/blob/master/README.md', | ||
tag_list: ['example', 'disapora project'], | ||
owner: { | ||
id: 3, | ||
|
@@ -64,9 +64,10 @@ export const projectFixture: GitlabProjectDetails = { | |
}, | ||
}, | ||
archived: false, | ||
avatar_url: 'http://example.com/uploads/project/avatar/3/uploads/avatar.png', | ||
avatar_url: | ||
'https://my-git.domain.com/uploads/project/avatar/3/uploads/avatar.png', | ||
license_url: | ||
'http://example.com/diaspora/diaspora-client/blob/master/LICENSE', | ||
'https://my-git.domain.com/diaspora/diaspora-client/blob/master/LICENSE', | ||
license: { | ||
key: 'lgpl-3.0', | ||
name: 'GNU Lesser General Public License v3.0', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters