'Github CODEOWNERS Syntax - Name included in directory?
In Github CODEOWNERS, I want to set a rule for "directories that contains the word <TEAM_NAME>
".
I assume it'd be something like this if possible: src/**<TEAM_NAME>**/**
For example, if I have such directory structure:
src/
index.js
features/
auth/
sales-feature1/
sales-feature2/
marketing-feature1/
marketing-feature2/
marketing-feature3/
utils/
sales-util1/
sales-util2/
I want to set CODEOWNERS like:
src/**sales**/** @github-sales-team
Which will apply to the below files
src/features/sales-feature1/**
src/features/sales-feature2/**
src/utils/sales-util1/**
src/utils/sales-util2/*
Question: What to set for src/**sales**/**
to achieve this?
Solution 1:[1]
Seems CODEOWNERS follows .gitigonore rule with some exceptions
And the following link from other is helpful
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | mar-rak |