This is an automated email from the ASF dual-hosted git repository.

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new dc1e49541 feat(config-ui): add params sort for github miller-columns 
(#4528)
dc1e49541 is described below

commit dc1e49541df99e9495437410a7c56cdee8453324
Author: 青湛 <[email protected]>
AuthorDate: Mon Feb 27 10:32:29 2023 +0800

    feat(config-ui): add params sort for github miller-columns (#4528)
---
 config-ui/src/plugins/register/github/api.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/config-ui/src/plugins/register/github/api.ts 
b/config-ui/src/plugins/register/github/api.ts
index 46b43c54e..b0edde388 100644
--- a/config-ui/src/plugins/register/github/api.ts
+++ b/config-ui/src/plugins/register/github/api.ts
@@ -34,7 +34,10 @@ export const getUserOrgs = (prefix: string, params: 
PaginationParams) =>
 export const getOrgRepos = (prefix: string, org: string, params: 
PaginationParams) =>
   request(`${prefix}/orgs/${org}/repos`, {
     method: 'get',
-    data: params,
+    data: {
+      ...params,
+      sort: 'full_name',
+    },
   });
 
 export const getUserRepos = (prefix: string, params: PaginationParams) =>
@@ -43,6 +46,7 @@ export const getUserRepos = (prefix: string, params: 
PaginationParams) =>
     data: {
       ...params,
       type: 'owner',
+      sort: 'full_name',
     },
   });
 

Reply via email to