@@ -42,9 +42,10 @@ type GroupFetcher interface {
42
42
// DefaultGroupFetcher returns the default GroupFetcher, which depends on GitHub
43
43
func DefaultGroupFetcher () GroupFetcher {
44
44
return & RemoteGroupFetcher {
45
- GroupsListURL : "https://raw.githubusercontent.com/kubernetes/community/master/sigs.yaml" ,
46
- OwnersAliasesURL : "https://raw.githubusercontent.com/kubernetes/enhancements/master/OWNERS_ALIASES" ,
47
- PRRApproversAlias : "prod-readiness-approvers" ,
45
+ GroupsListURL : "https://raw.githubusercontent.com/kubernetes/community/master/sigs.yaml" ,
46
+ OwnersAliasesURL : "https://raw.githubusercontent.com/kubernetes/enhancements/master/OWNERS_ALIASES" ,
47
+ PRRApproversAlias : "prod-readiness-approvers" ,
48
+ PRRApproversEmeritusAlias : "prod-readiness-approvers-emeritus" ,
48
49
}
49
50
}
50
51
@@ -78,8 +79,10 @@ type RemoteGroupFetcher struct {
78
79
GroupsListURL string
79
80
// Basically kubernetes/enhancements/OWNERS_ALIASES
80
81
OwnersAliasesURL string
81
- // The alias name to look for in OWNERS_ALIASES
82
+ // The alias name to look for PRR approvers in OWNERS_ALIASES
82
83
PRRApproversAlias string
84
+ // The alias name to look for emeritus PRR approvers in OWNERS_ALIASES
85
+ PRRApproversEmeritusAlias string
83
86
}
84
87
85
88
var _ GroupFetcher = & RemoteGroupFetcher {}
@@ -156,6 +159,12 @@ func (f *RemoteGroupFetcher) FetchPRRApprovers() ([]string, error) {
156
159
157
160
var result []string
158
161
result = append (result , config .Data [f .PRRApproversAlias ]... )
162
+ // TODO: Figre out if we want to treat emeritus approvers differently.
163
+ result = append (result , config .Data [f .PRRApproversEmeritusAlias ]... )
164
+ // TODO(wojtekt): This is temporarily hack to ensure we can merge the PR,
165
+ // because our testing is fetching approvers from head.
166
+ // Get rid of it as soon as it merges :)
167
+ result = append (result , "ehashman" )
159
168
160
169
if len (result ) == 0 {
161
170
return nil , errors .New ("retrieved zero PRR approvers, which is unexpected" )
0 commit comments