diff --git a/src/issueProvider.ts b/src/issueProvider.ts index e92a4b3..dc3637a 100644 --- a/src/issueProvider.ts +++ b/src/issueProvider.ts @@ -26,7 +26,7 @@ export class IssueProvider implements vscode.TreeDataProvider { const giteaConnector = new GiteaConnector(config.token, config.sslVerify); const issues = []; - let page = 0; + let page = 1; while (page < 11) { const issuesOfPage = (await giteaConnector.getIssues(config.repoApiUrl, this.state, page)).data; issues.push(...issuesOfPage); @@ -37,7 +37,7 @@ export class IssueProvider implements vscode.TreeDataProvider { c.creator = c.user.login; }); page++; - if (issues.length < 10) { + if (issuesOfPage.length < 10) { break; } }