Skip to content

Commit 22337e2

Browse files
committed
improve repository listing on pipeline creation
1 parent 699a72a commit 22337e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/git/github.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ export class GithubApi extends Repo {
275275
public async listRepos(): Promise<string[]> {
276276
let ret: string[] = [];
277277
try {
278-
const repos = await this.octokit.request('GET /user/repos', {})
278+
const repos = await this.octokit.request('GET /user/repos', {
279+
visibility: 'all',
280+
per_page: 100,
281+
sort: 'updated'
282+
})
279283
for (let repo of repos.data) {
280284
ret.push(repo.ssh_url)
281285
}

0 commit comments

Comments
 (0)