File tree 1 file changed +1
-27
lines changed
1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change 50
50
console.log("This workflow is running within an invalid context")
51
51
process.exit(1)
52
52
}
53
-
54
- // This list should match with CODEOWNERS.
55
- let requiredReviewers = {
56
- gobbleturk: "",
57
- khatwanimohit: "",
58
- bvandermoon: "",
59
- vipannalla: "",
60
- RissyRan: "",
61
- richjames0: "",
62
- rni418: "",
63
- gagika: "",
64
- shralex: "",
65
- yangyuwei: "",
66
- SurbhiJainUSC: "",
67
- hengtaoguo: "",
68
- A9isha: "",
69
- wang2yn84: "",
70
- wyzhang: "",
71
- mitalisi: "",
72
- gpolovets1: "",
73
- mailvijayasingh: "",
74
- jrplatin: "",
75
- patemotter: "",
76
- lumosis: "",
77
- aireenmei: "",
78
- }
79
53
const reviews = await github.rest.pulls.listReviews({
80
54
owner,
81
55
repo,
95
69
}
96
70
let num_approved = 0
97
71
for (const review of reviews.data) {
98
- if (review.state === "APPROVED" && review.user.login in requiredReviewers ) {
72
+ if (review.state === "APPROVED" && pull_request.merged == true ) {
99
73
num_approved = num_approved + 1
100
74
}
101
75
}
You can’t perform that action at this time.
0 commit comments