Skip to content

Commit 4c8d3d4

Browse files
authored
feat(bitbucket): Enable HTTP cache for issues (#28030)
1 parent fcffdc9 commit 4c8d3d4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/modules/platform/bitbucket/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,11 @@ export async function getIssueList(): Promise<Issue[]> {
670670
filters.push(`reporter.uuid="${renovateUserUuid}"`);
671671
}
672672
const filter = encodeURIComponent(filters.join(' AND '));
673-
return (
674-
(
675-
await bitbucketHttp.getJson<{ values: Issue[] }>(
676-
`/2.0/repositories/${config.repository}/issues?q=${filter}`,
677-
)
678-
).body.values || []
679-
);
673+
const url = `/2.0/repositories/${config.repository}/issues?q=${filter}`;
674+
const res = await bitbucketHttp.getJson<{ values: Issue[] }>(url, {
675+
cacheProvider: repoCacheProvider,
676+
});
677+
return res.body.values || [];
680678
} catch (err) {
681679
logger.warn({ err }, 'Error finding issues');
682680
return [];

0 commit comments

Comments
 (0)