Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reviewable_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ _.each(review.sentiments, function(sentiment) {
const lgtmBlockers = _.filter(assignees, username => !_.has(approvals, username));

// Part 4 Check that a trusted reviewer has a current LGTM.
const trustedReviewers = ['GrayHatter', 'iphydf', 'nurupo'];
const trustedReviewers = ['GrayHatter', 'iphydf', 'nurupo', 'robinlinden'];
const adminApproved = _.some(trustedReviewers, username => approvals[username]);

// Combine the above to compute final status
const completed = !unreviewedFiles.length && !unresolvedDiscussions.length && !lgtmBlockers.length && admin_approved;
const completed = !unreviewedFiles.length && !unresolvedDiscussions.length && !lgtmBlockers.length && adminApproved;

// Generate the status message
const pendingReviewers = _(fileBlockers)
.concat(discussionBlockers, lgtmBlockers, admin_approved ? [] : trustedReviewers)
.concat(discussionBlockers, lgtmBlockers, adminApproved ? [] : trustedReviewers)
.uniq()
.value();

Expand All @@ -94,7 +94,7 @@ if (lgtmBlockers.length) {
descriptionPieces.push(`${lgtmBlockers.length} assignee LGTMs are missing`);
}

if (!admin_approved) {
if (!adminApproved) {
descriptionPieces.push(`missing Admin LGTM at current revision.`);
}

Expand Down