add current project id as sourceRepositoryId to fetch of pull requests to avoid that bot needs read permission to all pr source repositories

This commit is contained in:
Marko Reiprecht 2024-12-09 15:53:02 +01:00
parent 735ea20f85
commit 65d27f252a

View file

@ -259,7 +259,11 @@ export async function getPrList(): Promise<AzurePr[]> {
do {
fetchedPrs = await azureApiGit.getPullRequests(
config.repoId,
{ status: 4 },
{
status: 4,
// fetch only prs directly created on the repo and not by forks
sourceRepositoryId: config.project,
},
config.project,
0,
skip,