Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
e456efac
Commit
e456efac
authored
7 years ago
by
Nicolas Noble
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #11806 from nicolasnoble/absolute-paths
Few fixes for mkowners.py.
parents
9877189e
eb020ce2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/CODEOWNERS
+22
-22
22 additions, 22 deletions
.github/CODEOWNERS
tools/mkowners/mkowners.py
+10
-7
10 additions, 7 deletions
tools/mkowners/mkowners.py
with
32 additions
and
29 deletions
.github/CODEOWNERS
+
22
−
22
View file @
e456efac
# Auto-generated by the tools/mkowners/mkowners.py tool
# Uses OWNERS files in different modules throughout the
# repository as the source of truth for module ownership.
**
@a11r
@nicolasnoble
@ctiller
bazel/**
@nicolasnoble
@dgquintas
@ctiller
cmake/**
@jtattermusch
@a11r
@nicolasnoble
@ctiller
doc/PROTOCOL-HTTP2.md
@ejona86
@a11r
@nicolasnoble
@ctiller
doc/interop-test-descriptions.md
@ejona86
@a11r
@nicolasnoble
@ctiller
etc/**
@jboeuf
@nicolasnoble
@a11r
@ctiller
include/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
src/core/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
src/cpp/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
src/csharp/**
@jtattermusch
@apolcyn
@a11r
@nicolasnoble
@ctiller
src/node/**
@murgatroid99
@a11r
@nicolasnoble
@ctiller
src/objective-c/**
@muxi
@makdharma
@a11r
@nicolasnoble
@ctiller
src/php/**
@stanley-cheung
@murgatroid99
@a11r
@nicolasnoble
@ctiller
src/python/**
@nathanielmanistaatgoogle
@kpayson64
@a11r
@nicolasnoble
@ctiller
src/ruby/**
@apolcyn
@murgatroid99
@a11r
@nicolasnoble
@ctiller
test/build/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
test/core/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
test/cpp/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
tools/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
tools/codegen/core/**
@ctiller
@dgquintas
@markdroth
tools/dockerfile/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
tools/run_tests/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
/
**
@a11r
@nicolasnoble
@ctiller
/
bazel/**
@nicolasnoble
@dgquintas
@ctiller
/
cmake/**
@jtattermusch
@a11r
@nicolasnoble
@ctiller
/
doc/PROTOCOL-HTTP2.md
@ejona86
@a11r
@nicolasnoble
@ctiller
/
doc/interop-test-descriptions.md
@ejona86
@a11r
@nicolasnoble
@ctiller
/
etc/**
@jboeuf
@nicolasnoble
@a11r
@ctiller
/
include/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
src/core/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
src/cpp/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
src/csharp/**
@jtattermusch
@apolcyn
@a11r
@nicolasnoble
@ctiller
/
src/node/**
@murgatroid99
@a11r
@nicolasnoble
@ctiller
/
src/objective-c/**
@muxi
@makdharma
@a11r
@nicolasnoble
@ctiller
/
src/php/**
@stanley-cheung
@murgatroid99
@a11r
@nicolasnoble
@ctiller
/
src/python/**
@nathanielmanistaatgoogle
@kpayson64
@a11r
@nicolasnoble
@ctiller
/
src/ruby/**
@apolcyn
@murgatroid99
@a11r
@nicolasnoble
@ctiller
/
test/build/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
test/core/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
test/cpp/**
@ctiller
@markdroth
@dgquintas
@a11r
@nicolasnoble
/
tools/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
/
tools/codegen/core/**
@ctiller
@dgquintas
@markdroth
/
tools/dockerfile/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
/
tools/run_tests/**
@matt-kwong
@jtattermusch
@nicolasnoble
@a11r
@ctiller
This diff is collapsed.
Click to expand it.
tools/mkowners/mkowners.py
+
10
−
7
View file @
e456efac
...
...
@@ -123,6 +123,9 @@ owners_data = new_owners_data
# a CODEOWNERS file for GitHub
#
def
full_dir
(
rules_dir
,
sub_path
):
return
os
.
path
.
join
(
rules_dir
,
sub_path
)
if
rules_dir
!=
'
.
'
else
sub_path
def
glob_intersect
(
g1
,
g2
):
if
not
g2
:
return
all
(
c
==
'
*
'
for
c
in
g1
)
...
...
@@ -136,17 +139,18 @@ def glob_intersect(g1, g2):
return
glob_intersect
(
t1
,
g2
)
or
glob_intersect
(
g1
,
t2
)
return
c1
==
c2
and
glob_intersect
(
t1
,
t2
)
def
add_parent_to_globs
(
parent
,
globs
):
def
add_parent_to_globs
(
parent
,
globs
,
globs_dir
):
if
not
parent
:
return
for
owners
in
owners_data
:
if
owners
.
dir
==
parent
:
for
directive
in
owners
.
directives
:
for
dglob
in
directive
.
globs
or
[
'
**
'
]:
for
gglob
,
glob
in
globs
.
items
():
if
glob_intersect
(
dglob
,
gglob
):
if
glob_intersect
(
full_dir
(
globs_dir
,
gglob
),
full_dir
(
owners
.
dir
,
dglob
)):
if
directive
.
who
not
in
glob
:
glob
.
append
(
directive
.
who
)
add_parent_to_globs
(
owners
.
parent
,
globs
)
add_parent_to_globs
(
owners
.
parent
,
globs
,
globs_dir
)
return
assert
(
False
)
...
...
@@ -167,9 +171,8 @@ with open(args.out, 'w') as out:
if
glob
not
in
globs
:
globs
[
glob
]
=
[]
globs
[
glob
].
append
(
directive
.
who
)
add_parent_to_globs
(
head
.
parent
,
globs
)
add_parent_to_globs
(
head
.
parent
,
globs
,
head
.
dir
)
for
glob
,
owners
in
globs
.
items
():
out
.
write
(
'
%s %s
\n
'
%
(
os
.
path
.
join
(
head
.
dir
,
glob
)
if
head
.
dir
!=
'
.
'
else
glob
,
'
'
.
join
(
owners
)))
out
.
write
(
'
/%s %s
\n
'
%
(
full_dir
(
head
.
dir
,
glob
),
'
'
.
join
(
owners
)))
done
.
add
(
head
.
dir
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment