From 6199b24832f53de3d24d06c43afd8ff1da630ffe Mon Sep 17 00:00:00 2001 From: Joseph Hoare Date: Fri, 7 Jun 2024 11:36:44 +0100 Subject: [PATCH] Add support for bitbucket CODEOWNERS location BitBucket requires the CODEOWNERS file to be placed in a .bitbucket folder. https://confluence.atlassian.com/display/BitbucketServer/Code+owners This change enhances renovate to also search for a CODEOWNERS file in this location. --- lib/workers/repository/update/pr/code-owners.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/workers/repository/update/pr/code-owners.ts b/lib/workers/repository/update/pr/code-owners.ts index f45373c063cc10..f0801145ff45a1 100644 --- a/lib/workers/repository/update/pr/code-owners.ts +++ b/lib/workers/repository/update/pr/code-owners.ts @@ -81,6 +81,7 @@ export async function codeOwnersForPr(pr: Pr): Promise { // Find CODEOWNERS file const codeOwnersFile = (await readLocalFile('CODEOWNERS', 'utf8')) ?? + (await readLocalFile('.bitbucket/CODEOWNERS', 'utf8')) ?? (await readLocalFile('.github/CODEOWNERS', 'utf8')) ?? (await readLocalFile('.gitlab/CODEOWNERS', 'utf8')) ?? (await readLocalFile('docs/CODEOWNERS', 'utf8'));