Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 251413e

Browse files
Merge pull request #381 from ehuss/fix-all-pick
Remove implicit "all" group choice.
2 parents b54f081 + be1d7b2 commit 251413e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

highfive/newpr.py

-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ def find_reviewer(self, msg, exclude):
252252
if match:
253253
groups = self.get_groups()
254254
potential = groups.get(match.group(2)) or groups.get("%s/%s" % (match.group(1), match.group(2))) or []
255-
if 'all' in groups:
256-
potential.extend(groups["all"])
257255
picked = self.pick_reviewer(groups, potential, exclude)
258256
if picked:
259257
return picked

highfive/tests/fakes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_repo_configs():
8686
}
8787
},
8888
'teams': {
89-
"groups": {"all": [], "a": ["@pnkfelix"], "d": ["@e"], "compiler-team": ["@niko"], "b/c": ["@nrc"]}
89+
"groups": {"all": ["@ehuss"], "a": ["@pnkfelix"], "d": ["@e"], "compiler-team": ["@niko"], "b/c": ["@nrc"]}
9090
}
9191
}
9292

0 commit comments

Comments
 (0)