@@ -24,97 +24,6 @@ import (
24
24
"golang.org/x/exp/maps"
25
25
)
26
26
27
- var (
28
- // This is for the random-assignee rotation.
29
- reviewerRotation = map [string ]struct {}{
30
- "slevenick" : struct {}{},
31
- "c2thorn" : struct {}{},
32
- "rileykarson" : struct {}{},
33
- "melinath" : struct {}{},
34
- "ScottSuarez" : struct {}{},
35
- "shuyama1" : struct {}{},
36
- "SarahFrench" : struct {}{},
37
- "roaks3" : struct {}{},
38
- "zli82016" : struct {}{},
39
- "trodge" : struct {}{},
40
- "hao-nan-li" : struct {}{},
41
- "NickElliot" : struct {}{},
42
- "BBBmau" : struct {}{},
43
- }
44
-
45
- // This is for new team members who are onboarding
46
- trustedContributors = map [string ]struct {}{}
47
-
48
- // This is for reviewers who are "on vacation": will not receive new review assignments but will still receive re-requests for assigned PRs.
49
- // User can specify the time zone like this, and following the example below:
50
- pdtLoc , _ = time .LoadLocation ("America/Los_Angeles" )
51
- bstLoc , _ = time .LoadLocation ("Europe/London" )
52
- onVacationReviewers = []onVacationReviewer {
53
- // Example: taking vacation from 2024-03-28 to 2024-04-02 in pdt time zone.
54
- // both ends are inclusive:
55
- // {
56
- // id: "xyz",
57
- // startDate: newDate(2024, 3, 28, pdtLoc),
58
- // endDate: newDate(2024, 4, 2, pdtLoc),
59
- // },
60
- {
61
- id : "hao-nan-li" ,
62
- startDate : newDate (2024 , 4 , 11 , pdtLoc ),
63
- endDate : newDate (2024 , 6 , 14 , pdtLoc ),
64
- },
65
- {
66
- id : "ScottSuarez" ,
67
- startDate : newDate (2024 , 4 , 30 , pdtLoc ),
68
- endDate : newDate (2024 , 7 , 31 , pdtLoc ),
69
- },
70
- {
71
- id : "SarahFrench" ,
72
- startDate : newDate (2024 , 8 , 2 , bstLoc ),
73
- endDate : newDate (2024 , 8 , 6 , bstLoc ),
74
- },
75
- {
76
- id : "shuyama1" ,
77
- startDate : newDate (2024 , 5 , 22 , pdtLoc ),
78
- endDate : newDate (2024 , 5 , 28 , pdtLoc ),
79
- },
80
- {
81
- id : "melinath" ,
82
- startDate : newDate (2024 , 6 , 26 , pdtLoc ),
83
- endDate : newDate (2024 , 7 , 22 , pdtLoc ),
84
- },
85
- {
86
- id : "slevenick" ,
87
- startDate : newDate (2024 , 7 , 5 , pdtLoc ),
88
- endDate : newDate (2024 , 7 , 16 , pdtLoc ),
89
- },
90
- {
91
- id : "c2thorn" ,
92
- startDate : newDate (2024 , 7 , 10 , pdtLoc ),
93
- endDate : newDate (2024 , 7 , 16 , pdtLoc ),
94
- },
95
- {
96
- id : "rileykarson" ,
97
- startDate : newDate (2024 , 7 , 18 , pdtLoc ),
98
- endDate : newDate (2024 , 8 , 10 , pdtLoc ),
99
- },
100
- {
101
- id : "roaks3" ,
102
- startDate : newDate (2024 , 8 , 2 , pdtLoc ),
103
- endDate : newDate (2024 , 8 , 9 , pdtLoc ),
104
- },
105
- {
106
- id : "slevenick" ,
107
- startDate : newDate (2024 , 8 , 10 , pdtLoc ),
108
- endDate : newDate (2024 , 8 , 17 , pdtLoc ),
109
- },
110
- {
111
- id : "trodge" ,
112
- startDate : newDate (2024 , 8 , 24 , pdtLoc ),
113
- endDate : newDate (2024 , 9 , 2 , pdtLoc ),
114
- },
115
- }
116
- )
117
-
118
27
type UserType int64
119
28
120
29
type date struct {
0 commit comments