@dog-ai/github-wrapper
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -174,8 +174,18 @@ 'use strict'; | ||
reviewPullRequest(owner, repo, number, commitId, event) { | ||
listPullRequestReviews(owner, repo, number) { | ||
var _this9 = this; | ||
return _asyncToGenerator(function* () { | ||
const options = _this9._octokit.pulls.listReviews.endpoint.merge({ owner, repo, pull_number: number }); | ||
return _this9._octokit.paginate(options); | ||
})(); | ||
} | ||
reviewPullRequest(owner, repo, number, commitId, event) { | ||
var _this10 = this; | ||
return _asyncToGenerator(function* () { | ||
try { | ||
yield _this9._octokit.pulls.createReview({ | ||
yield _this10._octokit.pulls.createReview({ | ||
owner, | ||
@@ -194,7 +204,7 @@ repo, | ||
requestPullRequestReview(owner, repo, number, reviewers) { | ||
var _this10 = this; | ||
var _this11 = this; | ||
return _asyncToGenerator(function* () { | ||
try { | ||
yield _this10.octokit.pulls.createReviewRequest({ | ||
yield _this11.octokit.pulls.createReviewRequest({ | ||
owner, | ||
@@ -212,8 +222,8 @@ repo, | ||
getPullRequestComments(owner, repo, number) { | ||
var _this11 = this; | ||
var _this12 = this; | ||
return _asyncToGenerator(function* () { | ||
const options = _this11._octokit.issues.listComments.endpoint.merge({ owner, repo, issue_number: number }); | ||
const options = _this12._octokit.issues.listComments.endpoint.merge({ owner, repo, issue_number: number }); | ||
const comments = yield _this11._octokit.paginate(options); | ||
const comments = yield _this12._octokit.paginate(options); | ||
@@ -220,0 +230,0 @@ return comments; |
{ | ||
"name": "@dog-ai/github-wrapper", | ||
"description": "A GitHub wrapper library", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"engines": { | ||
@@ -41,3 +41,3 @@ "node": ">= 6.0.0" | ||
"semantic-release": "15.13.12", | ||
"snyk": "1.169.0" | ||
"snyk": "1.170.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "config": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11099
177