Skip to content

Commit

Permalink
Log API response
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosmoum committed Mar 20, 2020
1 parent 67e1fb5 commit 50d2150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ async function run() {
const octokit = new github.GitHub(githubToken);

console.log('About to request review from team ' + teamName + ' for PR number ' + pr.number + ', on repo ' + github.context.repo.owner + '/' + github.context.repo.repo);
octokit.pulls.createReviewRequest({
const { data: response } = await octokit.pulls.createReviewRequest({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
pull_number: pr.number,
team_reviewers: [teamName]
});
console.log('Response: ' + response);
console.log('Review Request done...');
}

Expand Down

0 comments on commit 50d2150

Please sign in to comment.