Add CODEOWNERS file#74
Merged
Merged
Conversation
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 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a repository-wide CODEOWNERS file so GitHub can automatically request reviews from the designated owners.
Changes:
- Introduces a new
CODEOWNERSfile at the repository root - Sets default ownership for all paths to
@starbopsand@harvester/dev
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+3
to
+8
| # 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' -- <path> | sort | uniq -c | sort -nr | head -n 3 |
Updated the CODEOWNERS file to clarify ownership rules and formatting. Signed-off-by: freeze <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
Add CODEOWNER
Solution:
Add CODEOWNER
Related Issue(s):
harvester/harvester#9607
Test plan:
Additional documentation or context