Skip to content

Commit

Permalink
github(findPr): fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed Dec 28, 2024
1 parent ca821eb commit fbcce33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modules/platform/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,9 +855,10 @@ export async function findPr({

if (includeOtherAuthors) {
const repo = config.parentRepo ?? config.repository;
const org = repo?.split('/')[0];
// PR might have been created by anyone, so don't use the cached Renovate PR list
const { body: prList } = await githubApi.getJson<GhRestPr[]>(
`repos/${repo}/pulls?head=${repo}:${branchName}&state=open`,
`repos/${repo}/pulls?head=${org}:${branchName}&state=open`,
{ cacheProvider: repoCacheProvider },
);

Expand Down

0 comments on commit fbcce33

Please sign in to comment.