Show response for team review request
});
// NOTE: Team review request is required to be posted for
// membership check to work.
- github.rest.pulls.requestReviewers({
+ // https://docs.github.com/en/rest/reference/pulls#request-reviewers-for-a-pull-request
+ // Successful response is 201
+ const requestReviewersPromise = github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
team_reviewers: [team.replace("@", "")],
});
+ requestReviewersPromise.then(response => {
+ console.log(response);
+ });
}
};
return found_label
