From 8c19d752e7b03d54f3b524247adaba7987250401 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Mon, 13 Jul 2026 17:24:50 +0800 Subject: [PATCH 1/2] Add CODEOWNERS file Assign code owners following the org-wide convention: top 3 contributors of the last 24 months (>=2 commits, bots excluded) with @harvester/dev as fallback. Signed-off-by: Vicente Cheng --- CODEOWNERS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 00000000..90c6c79f --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,10 @@ +# To enhance the review process, we have designated specific teams as code owners for different parts of the repository. + +# We setup the codeowners with the following rules: +# Top 3 contributors of each directory are assigned as code owners, if don't have enough contributors, dev team will be assigned. +# If the number of commits of a contributor is less than 2, that contributor will be ignored. + +# The corresponding git commit is used to determine the code owners. +# git log --since="24 months ago" --pretty=format:'%an' -- | sort | uniq -c | sort -nr | head -n 3 + +* @votdev @ibrokethecloud @harvester/dev From f6cbd81957a3b39b19af543756be9503248e06df Mon Sep 17 00:00:00 2001 From: freeze <1615081+Vicente-Cheng@users.noreply.github.com> Date: Tue, 14 Jul 2026 09:58:48 +0800 Subject: [PATCH 2/2] Update CODEOWNERS Signed-off-by: freeze <1615081+Vicente-Cheng@users.noreply.github.com> --- CODEOWNERS | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 90c6c79f..3b8a7ec5 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,10 +1,11 @@ -# To enhance the review process, we have designated specific teams as code owners for different parts of the repository. - -# We setup the codeowners with the following rules: -# Top 3 contributors of each directory are assigned as code owners, if don't have enough contributors, dev team will be assigned. -# If the number of commits of a contributor is less than 2, that contributor will be ignored. - -# The corresponding git commit is used to determine the code owners. +# To enhance the review process, specific teams and individuals are designated as code owners for different parts of the repository. +# +# Ownership rules: +# 1. The top three contributors to a directory are assigned as owners. +# 2. If a directory lacks active contributors, the dev team is assigned as a fallback. +# 3. Contributors with fewer than two commits are ignored. +# +# Ownership is determined dynamically using the following command: # git log --since="24 months ago" --pretty=format:'%an' -- | sort | uniq -c | sort -nr | head -n 3 * @votdev @ibrokethecloud @harvester/dev