From a4959a995cc56a8cf8444ffca8d4a42c0363e5a2 Mon Sep 17 00:00:00 2001 From: Luis Reinoso Date: Mon, 16 Dec 2024 15:14:01 -0500 Subject: [PATCH] Enhance GitHubService to sort starred repositories by creation date - Updated the GitHubService to include sorting options for the list of repositories starred by the authenticated user. - Added 'sort' parameter set to 'created' and 'direction' set to 'asc' for improved data retrieval. These changes improve the functionality of the GitHubService by allowing users to view their starred repositories in chronological order. --- src/services/github.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/github.ts b/src/services/github.ts index 1d581e9..0f28529 100644 --- a/src/services/github.ts +++ b/src/services/github.ts @@ -62,6 +62,8 @@ export class GitHubService { await this.octokit.activity.listReposStarredByAuthenticatedUser({ per_page: perPage, page: page, + sort: 'created', + direction: 'asc', }); const total = response.data.length;