Skip to content

Commit

Permalink
Add support for bitbucket CODEOWNERS location
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RadikalJin authored Jun 7, 2024
1 parent be93ca7 commit 6199b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/workers/repository/update/pr/code-owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export async function codeOwnersForPr(pr: Pr): Promise<string[]> {
// 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'));
Expand Down

0 comments on commit 6199b24

Please sign in to comment.