8000 also log reviewers · TailorDev/assignees@7d37ebc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
also log reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Jan 30, 2017
1 parent 2647846 commit 7d37ebc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/findReviewers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ const getCollaborators = async (github, repository) => github.repos
.catch([])
;

const logPotentialReviewers = (logger, collaborators, authorsFromHistory) => {
const logPotentialReviewers = (logger, collaborators, authorsFromHistory, reviewers) => {
logger.info([
"message='potential reviewers'",
`collaborators=${inspect(collaborators)}`,
`authors=${inspect(authorsFromHistory)}`,
`potential_reviewers=${inspect(reviewers)}`,
].join(' '));
};

Expand Down Expand Up @@ -159,7 +160,7 @@ exports.configure = config => async (repositoryId, number, author, logger) => {
reviewers = collaborators;
}

logPotentialReviewers(logger, collaborators, authorsFromHistory);
logPotentialReviewers(logger, collaborators, authorsFromHistory, reviewers);

// 3 - We're almost there
return Promise.resolve(reviewers)
Expand Down

0 comments on commit 7d37ebc

Please sign in to comment.
0