[feat]: [CDS-73572]: Support List Repo Live Search for all git providers
parent
39470167b5
commit
70cccf871a
@ -0,0 +1,110 @@
|
||||
{
|
||||
"pagelen": 1,
|
||||
"values": [
|
||||
{
|
||||
"scm": "git",
|
||||
"website": "",
|
||||
"has_wiki": false,
|
||||
"uuid": "{7dd600e6-0d9c-4801-b967-cb4cc17359ff}",
|
||||
"links": {
|
||||
"watchers": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/watchers"
|
||||
},
|
||||
"branches": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/refs\/branches"
|
||||
},
|
||||
"tags": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/refs\/tags"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/commits"
|
||||
},
|
||||
"clone": [
|
||||
{
|
||||
"href": "https:\/\/brydzewski@bitbucket.org\/atlassian\/stash-example-plugin1.git",
|
||||
"name": "https"
|
||||
},
|
||||
{
|
||||
"href": "git@bitbucket.org:atlassian\/stash-example-plugin1.git",
|
||||
"name": "ssh"
|
||||
}
|
||||
],
|
||||
"self": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1"
|
||||
},
|
||||
"source": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/src"
|
||||
},
|
||||
"html": {
|
||||
"href": "https:\/\/bitbucket.org\/atlassian\/stash-example-plugin1"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https:\/\/bytebucket.org\/ravatar\/%7B7dd600e6-0d9c-4801-b967-cb4cc17359ff%7D?ts=default"
|
||||
},
|
||||
"hooks": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/hooks"
|
||||
},
|
||||
"forks": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/forks"
|
||||
},
|
||||
"downloads": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/downloads"
|
||||
},
|
||||
"pullrequests": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/atlassian\/stash-example-plugin1\/pullrequests"
|
||||
}
|
||||
},
|
||||
"fork_policy": "allow_forks",
|
||||
"name": "stash-example-plugin1",
|
||||
"project": {
|
||||
"key": "PROJ",
|
||||
"type": "project",
|
||||
"uuid": "{8b56daff-dbc7-4cae-a7a3-1228c526906b}",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/teams\/atlassian\/projects\/PROJ"
|
||||
},
|
||||
"html": {
|
||||
"href": "https:\/\/bitbucket.org\/account\/user\/atlassian\/projects\/PROJ"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https:\/\/bitbucket.org\/account\/user\/atlassian\/projects\/PROJ\/avatar\/32"
|
||||
}
|
||||
},
|
||||
"name": "Project: Atlassian"
|
||||
},
|
||||
"language": "",
|
||||
"created_on": "2013-04-15T03:05:05.595458+00:00",
|
||||
"mainbranch": {
|
||||
"type": "branch",
|
||||
"name": "master"
|
||||
},
|
||||
"full_name": "atlassian\/stash-example-plugin1",
|
||||
"has_issues": false,
|
||||
"owner": {
|
||||
"username": "atlassian",
|
||||
"display_name": "Atlassian",
|
||||
"type": "team",
|
||||
"uuid": "{02b941e3-cfaa-40f9-9a58-cec53e20bdc3}",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https:\/\/api.bitbucket.org\/2.0\/teams\/atlassian"
|
||||
},
|
||||
"html": {
|
||||
"href": "https:\/\/bitbucket.org\/atlassian\/"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https:\/\/bitbucket.org\/account\/atlassian\/avatar\/32\/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"updated_on": "2018-04-01T16:36:35.970175+00:00",
|
||||
"size": 1116345,
|
||||
"type": "repository",
|
||||
"slug": "stash-example-plugin1",
|
||||
"is_private": true,
|
||||
"description": "Examples on how to decorate various pages around Stash."
|
||||
}
|
||||
],
|
||||
"next": "https:\/\/api.bitbucket.org\/2.0\/repositories?pagelen=1&after=PLACEHOLDER&role=member"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"ID": "{7dd600e6-0d9c-4801-b967-cb4cc17359ff}",
|
||||
"Namespace": "atlassian",
|
||||
"Name": "stash-example-plugin1",
|
||||
"Perm": null,
|
||||
"Branch": "master",
|
||||
"Private": true,
|
||||
"Clone": "https://bitbucket.org/atlassian/stash-example-plugin1.git",
|
||||
"CloneSSH": "git@bitbucket.org:atlassian/stash-example-plugin1.git",
|
||||
"Link": "https://bitbucket.org/atlassian/stash-example-plugin1",
|
||||
"Created": "2013-04-15T03:05:05.595458Z",
|
||||
"Updated": "2018-04-01T16:36:35.970175Z"
|
||||
}
|
||||
]
|
@ -0,0 +1,107 @@
|
||||
{
|
||||
"total_count": 5,
|
||||
"incomplete_results": false,
|
||||
"items": [
|
||||
{
|
||||
"id": 508719340,
|
||||
"node_id": "R_kgDOHlJw7A",
|
||||
"name": "testRepo2",
|
||||
"full_name": "user123/testRepo2",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "user123",
|
||||
"id": 103414561,
|
||||
"node_id": "U_kgDOBin7IQ",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/103414561?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/user123",
|
||||
"html_url": "https://github.com/user123",
|
||||
"followers_url": "https://api.github.com/users/user123/followers",
|
||||
"following_url": "https://api.github.com/users/user123/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/user123/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/user123/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/user123/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/user123/orgs",
|
||||
"repos_url": "https://api.github.com/users/user123/repos",
|
||||
"events_url": "https://api.github.com/users/user123/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/user123/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/user123/testRepo2",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/user123/testRepo2",
|
||||
"forks_url": "https://api.github.com/repos/user123/testRepo2/forks",
|
||||
"keys_url": "https://api.github.com/repos/user123/testRepo2/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/user123/testRepo2/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/user123/testRepo2/teams",
|
||||
"hooks_url": "https://api.github.com/repos/user123/testRepo2/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/user123/testRepo2/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/user123/testRepo2/events",
|
||||
"assignees_url": "https://api.github.com/repos/user123/testRepo2/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/user123/testRepo2/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/user123/testRepo2/tags",
|
||||
"blobs_url": "https://api.github.com/repos/user123/testRepo2/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/user123/testRepo2/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/user123/testRepo2/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/user123/testRepo2/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/user123/testRepo2/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/user123/testRepo2/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/user123/testRepo2/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/user123/testRepo2/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/user123/testRepo2/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/user123/testRepo2/subscription",
|
||||
"commits_url": "https://api.github.com/repos/user123/testRepo2/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/user123/testRepo2/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/user123/testRepo2/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/user123/testRepo2/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/user123/testRepo2/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/user123/testRepo2/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/user123/testRepo2/merges",
|
||||
"archive_url": "https://api.github.com/repos/user123/testRepo2/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/user123/testRepo2/downloads",
|
||||
"issues_url": "https://api.github.com/repos/user123/testRepo2/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/user123/testRepo2/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/user123/testRepo2/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/user123/testRepo2/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/user123/testRepo2/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/user123/testRepo2/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/user123/testRepo2/deployments",
|
||||
"created_at": "2022-06-29T14:11:36Z",
|
||||
"updated_at": "2023-06-27T07:10:05Z",
|
||||
"pushed_at": "2023-06-07T05:36:36Z",
|
||||
"git_url": "git://github.com/user123/testRepo2.git",
|
||||
"ssh_url": "git@github.com:user123/testRepo2.git",
|
||||
"clone_url": "https://github.com/user123/testRepo2.git",
|
||||
"svn_url": "https://github.com/user123/testRepo2",
|
||||
"homepage": null,
|
||||
"size": 53,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"score": 1.0
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"ID": "508719340",
|
||||
"Namespace": "user123",
|
||||
"Name": "testRepo2",
|
||||
"Perm": {
|
||||
"Pull": false,
|
||||
"Push": false,
|
||||
"Admin": false
|
||||
},
|
||||
"Branch": "main",
|
||||
"Private": false,
|
||||
"Visibility": 1,
|
||||
"Clone": "https://github.com/user123/testRepo2.git",
|
||||
"CloneSSH": "git@github.com:user123/testRepo2.git",
|
||||
"Link": "https://github.com/user123/testRepo2",
|
||||
"Created": "2022-06-29T14:11:36Z",
|
||||
"Updated": "2023-06-27T07:10:05Z"
|
||||
}
|
||||
]
|
@ -0,0 +1,59 @@
|
||||
[
|
||||
{
|
||||
"id": 178504,
|
||||
"description": "",
|
||||
"default_branch": "master",
|
||||
"tag_list": [],
|
||||
"ssh_url_to_repo": "git@gitlab.com:diaspora/diaspora.git",
|
||||
"http_url_to_repo": "https://gitlab.com/diaspora/diaspora.git",
|
||||
"web_url": "https://gitlab.com/diaspora/diaspora",
|
||||
"name": "Diaspora",
|
||||
"name_with_namespace": "diaspora / Diaspora",
|
||||
"path": "diaspora",
|
||||
"path_with_namespace": "diaspora/diaspora",
|
||||
"avatar_url": null,
|
||||
"star_count": 0,
|
||||
"forks_count": 0,
|
||||
"created_at": "2015-03-03T18:37:05.387Z",
|
||||
"last_activity_at": "2015-03-03T18:37:20.795Z",
|
||||
"_links": {
|
||||
"self": "http://gitlab.com/api/v4/projects/178504",
|
||||
"issues": "http://gitlab.com/api/v4/projects/178504/issues",
|
||||
"merge_requests": "http://gitlab.com/api/v4/projects/178504/merge_requests",
|
||||
"repo_branches": "http://gitlab.com/api/v4/projects/178504/repository/branches",
|
||||
"labels": "http://gitlab.com/api/v4/projects/178504/labels",
|
||||
"events": "http://gitlab.com/api/v4/projects/178504/events",
|
||||
"members": "http://gitlab.com/api/v4/projects/178504/members"
|
||||
},
|
||||
"archived": false,
|
||||
"visibility": "public",
|
||||
"resolve_outdated_diff_discussions": null,
|
||||
"container_registry_enabled": null,
|
||||
"issues_enabled": true,
|
||||
"merge_requests_enabled": true,
|
||||
"wiki_enabled": true,
|
||||
"jobs_enabled": true,
|
||||
"snippets_enabled": false,
|
||||
"shared_runners_enabled": true,
|
||||
"lfs_enabled": true,
|
||||
"creator_id": 57658,
|
||||
"namespace": {
|
||||
"id": 120836,
|
||||
"name": "diaspora",
|
||||
"path": "diaspora",
|
||||
"kind": "group",
|
||||
"full_path": "diaspora",
|
||||
"parent_id": null
|
||||
},
|
||||
"import_status": "finished",
|
||||
"open_issues_count": 0,
|
||||
"public_jobs": true,
|
||||
"ci_config_path": null,
|
||||
"shared_with_groups": [],
|
||||
"only_allow_merge_if_pipeline_succeeds": false,
|
||||
"request_access_enabled": true,
|
||||
"only_allow_merge_if_all_discussions_are_resolved": null,
|
||||
"printing_merge_request_link_enabled": true,
|
||||
"approvals_before_merge": 0
|
||||
}
|
||||
]
|
@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"ID": "178504",
|
||||
"Namespace": "diaspora",
|
||||
"Name": "diaspora",
|
||||
"Perm": {
|
||||
"Pull": true,
|
||||
"Push": false,
|
||||
"Admin": false
|
||||
},
|
||||
"Branch": "master",
|
||||
"Private": false,
|
||||
"Visibility": 1,
|
||||
"Clone": "https://gitlab.com/diaspora/diaspora.git",
|
||||
"CloneSSH": "git@gitlab.com:diaspora/diaspora.git",
|
||||
"Link": "https://gitlab.com/diaspora/diaspora",
|
||||
"Created": "0001-01-01T00:00:00Z",
|
||||
"Updated": "0001-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
@ -0,0 +1,49 @@
|
||||
{
|
||||
"size": 25,
|
||||
"limit": 25,
|
||||
"isLastPage": false,
|
||||
"values": [
|
||||
{
|
||||
"slug": "quux",
|
||||
"id": 2,
|
||||
"name": "quux",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "PRJ",
|
||||
"id": 2,
|
||||
"name": "different_name",
|
||||
"public": false,
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "http://example.com:7990/projects/PRJ"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@example.com:7999/prj/quux.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "http://jcitizen@example.com:7990/scm/prj/quux.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "http://example.com:7990/projects/PRJ/repos/quux/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 0
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"ID": "2",
|
||||
"Namespace": "PRJ",
|
||||
"Name": "quux",
|
||||
"Perm": null,
|
||||
"Branch": "master",
|
||||
"Private": true,
|
||||
"Clone": "http://example.com:7990/scm/prj/quux.git",
|
||||
"CloneSSH": "ssh://git@example.com:7999/prj/quux.git",
|
||||
"Link": "http://example.com:7990/projects/PRJ/repos/quux/browse",
|
||||
"Created": "0001-01-01T00:00:00Z",
|
||||
"Updated": "0001-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue