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