Skip to content

Commit 8e960eb

Browse files
committed
fix: Add backward compatibility wrapper for getUserRepos method
- Added getUserRepos() method as wrapper for getUserRepositories() - Fixes build error in RepoSettingAccordion component - Maintains backward compatibility while preserving new enhanced functionality - Marked as deprecated to encourage migration to new method
1 parent 74af686 commit 8e960eb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/service/gitService.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@ export class GitService {
170170
return includeArchived ? repos : repos.filter((repo: any) => !repo.archived);
171171
}
172172

173+
/**
174+
* Get repositories for authenticated user (backward compatibility wrapper)
175+
* @deprecated Use getUserRepositories() for more configuration options
176+
*/
177+
async getUserRepos() {
178+
return this.getUserRepositories({
179+
type: 'all',
180+
visibility: 'all',
181+
affiliation: 'owner,collaborator,organization_member',
182+
includeArchived: false
183+
});
184+
}
185+
173186
async getPRChecksStatus(owner: string, repo: string, prNumber: number) {
174187
return rateLimiter.enqueue(
175188
() =>

0 commit comments

Comments
 (0)