@@ -9618,15 +9618,7 @@ function buildUpdatedComment(body, newLines, newState) {
96189618 return `${withoutMarker}\n${newLines.join('\n')}\n\n${stateMarker}`;
96199619}
96209620exports.buildUpdatedComment = buildUpdatedComment;
9621- function steeringCommitteeMembers() {
9622- return __awaiter(this, void 0, void 0, function* () {
9623- return (yield octokit_1.default.teams.listMembersInOrg({
9624- org: 'publiccodeyml',
9625- team_slug: 'steering-committee',
9626- })).data.map(m => m.login);
9627- });
9628- }
9629- function syncIssueVoteLog(owner, repo, issueNumber, members) {
9621+ function syncIssueVoteLog(owner, repo, issueNumber) {
96309622 var _a;
96319623 return __awaiter(this, void 0, void 0, function* () {
96329624 const comments = yield octokit_1.default.paginate('GET /repos/:owner/:repo/issues/:issue_number/comments', { owner, repo, issue_number: issueNumber });
@@ -9643,9 +9635,8 @@ function syncIssueVoteLog(owner, repo, issueNumber, members) {
96439635 repo,
96449636 comment_id: voteComment.id,
96459637 });
9646- const committee = members !== null && members !== void 0 ? members : yield steeringCommitteeMembers();
96479638 const liveReactions = reactions.data
9648- .filter(r => { var _a, _b; return ( r.content === '+1' || r.content === '-1') && committee.includes((_b = (_a = r.user) === null || _a === void 0 ? void 0 : _a.login) !== null && _b !== void 0 ? _b : ''); } )
9639+ .filter(r => r.content === '+1' || r.content === '-1')
96499640 .map(r => ({
96509641 login: r.user.login,
96519642 content: r.content,
@@ -9673,8 +9664,7 @@ function run(owner, repo) {
96739664 const issues = yield octokit_1.default.paginate('GET /repos/:owner/:repo/issues', {
96749665 owner, repo, state: 'open', labels: 'vote-start',
96759666 });
9676- const members = yield steeringCommitteeMembers();
9677- yield Promise.all(issues.map(issue => syncIssueVoteLog(owner, repo, issue.number, members)));
9667+ yield Promise.all(issues.map(issue => syncIssueVoteLog(owner, repo, issue.number)));
96789668 });
96799669}
96809670exports["default"] = run;
0 commit comments