Skip to content

Commit b0ef748

Browse files
committed
Renames repos argument and the local var in searchProviderMyPullRequests
(#4046, #4099)
1 parent 223d227 commit b0ef748

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/plus/integrations/providers/bitbucket.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,14 @@ export class BitbucketIntegration extends HostingIntegration<
193193

194194
protected override async searchProviderMyPullRequests(
195195
session: ProviderAuthenticationSession,
196-
requestedRepositories?: BitbucketRepositoryDescriptor[],
196+
repos?: BitbucketRepositoryDescriptor[],
197197
): Promise<PullRequest[] | undefined> {
198-
if (requestedRepositories != null) {
198+
if (repos != null) {
199199
// TODO: implement repos version
200200
return undefined;
201201
}
202-
203202
const remotes = await flatSettled(this.container.git.openRepositories.map(r => r.git.remotes().getRemotes()));
204-
const repos = await nonnullSettled(
203+
const workspaceRepos = await nonnullSettled(
205204
remotes.map(async r => ((await r.getIntegration())?.id === this.id ? r.path : undefined)),
206205
);
207206

@@ -218,7 +217,7 @@ export class BitbucketIntegration extends HostingIntegration<
218217
api.getPullRequestsForWorkspaceAuthoredByUser(this, session.accessToken, user.id, ws.slug, this.apiBaseUrl),
219218
);
220219

221-
const reviewingPrs = repos.map(repo => {
220+
const reviewingPrs = workspaceRepos.map(repo => {
222221
const [owner, name] = repo.split('/');
223222
return api.getUsersReviewingPullRequestsForRepo(
224223
this,

0 commit comments

Comments
 (0)