- update dependencies to latest stable release
``` @types/jest ^29.1.2 → ^29.2.3 @types/node ^18.11.0 → ^18.11.9 @types/semver ^7.3.12 → ^7.3.13 @typescript-eslint/parser ^5.40.0 → ^5.44.0 eslint ^8.25.0 → ^8.28.0 eslint-plugin-github ^4.4.0 → ^4.4.1 eslint-plugin-jest ^27.1.2 → ^27.1.5 jest ^29.2.0 → ^29.3.1 jest-circus ^29.2.0 → ^29.3.1 prettier 2.7.1 → 2.8.0 typescript ^4.8.4 → ^4.9.3 webpack ^5.74.0 → ^5.75.0 ```
This commit is contained in:
+44
-16
@@ -512,7 +512,7 @@ class PullRequests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
getBetweenDates(owner, repo, fromDate, toDate, maxPullRequests) {
|
getBetweenDates(owner, repo, fromDate, toDate, maxPullRequests) {
|
||||||
var e_1, _a;
|
var _a, e_1, _b, _c;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const mergedPRs = [];
|
const mergedPRs = [];
|
||||||
const options = this.octokit.pulls.list.endpoint.merge({
|
const options = this.octokit.pulls.list.endpoint.merge({
|
||||||
@@ -524,8 +524,11 @@ class PullRequests {
|
|||||||
direction: 'desc'
|
direction: 'desc'
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
for (var _b = __asyncValues(this.octokit.paginate.iterator(options)), _c; _c = yield _b.next(), !_c.done;) {
|
for (var _d = true, _e = __asyncValues(this.octokit.paginate.iterator(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
||||||
const response = _c.value;
|
_c = _f.value;
|
||||||
|
_d = false;
|
||||||
|
try {
|
||||||
|
const response = _c;
|
||||||
const prs = response.data;
|
const prs = response.data;
|
||||||
for (const pr of prs.filter(p => !!p.merged_at)) {
|
for (const pr of prs.filter(p => !!p.merged_at)) {
|
||||||
mergedPRs.push(mapPullRequest(pr, 'merged'));
|
mergedPRs.push(mapPullRequest(pr, 'merged'));
|
||||||
@@ -541,11 +544,15 @@ class PullRequests {
|
|||||||
return sortPrs(mergedPRs);
|
return sortPrs(mergedPRs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
_d = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||||
finally {
|
finally {
|
||||||
try {
|
try {
|
||||||
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||||
}
|
}
|
||||||
finally { if (e_1) throw e_1.error; }
|
finally { if (e_1) throw e_1.error; }
|
||||||
}
|
}
|
||||||
@@ -553,7 +560,7 @@ class PullRequests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
getOpen(owner, repo, maxPullRequests) {
|
getOpen(owner, repo, maxPullRequests) {
|
||||||
var e_2, _a;
|
var _a, e_2, _b, _c;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const openPrs = [];
|
const openPrs = [];
|
||||||
const options = this.octokit.pulls.list.endpoint.merge({
|
const options = this.octokit.pulls.list.endpoint.merge({
|
||||||
@@ -565,8 +572,11 @@ class PullRequests {
|
|||||||
direction: 'desc'
|
direction: 'desc'
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
for (var _b = __asyncValues(this.octokit.paginate.iterator(options)), _c; _c = yield _b.next(), !_c.done;) {
|
for (var _d = true, _e = __asyncValues(this.octokit.paginate.iterator(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
||||||
const response = _c.value;
|
_c = _f.value;
|
||||||
|
_d = false;
|
||||||
|
try {
|
||||||
|
const response = _c;
|
||||||
const prs = response.data;
|
const prs = response.data;
|
||||||
for (const pr of prs) {
|
for (const pr of prs) {
|
||||||
openPrs.push(mapPullRequest(pr, 'open'));
|
openPrs.push(mapPullRequest(pr, 'open'));
|
||||||
@@ -580,11 +590,15 @@ class PullRequests {
|
|||||||
return sortPrs(openPrs);
|
return sortPrs(openPrs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
_d = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
||||||
finally {
|
finally {
|
||||||
try {
|
try {
|
||||||
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||||
}
|
}
|
||||||
finally { if (e_2) throw e_2.error; }
|
finally { if (e_2) throw e_2.error; }
|
||||||
}
|
}
|
||||||
@@ -592,7 +606,7 @@ class PullRequests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
getReviewers(owner, repo, pr) {
|
getReviewers(owner, repo, pr) {
|
||||||
var e_3, _a;
|
var _a, e_3, _b, _c;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const options = this.octokit.pulls.listReviews.endpoint.merge({
|
const options = this.octokit.pulls.listReviews.endpoint.merge({
|
||||||
owner,
|
owner,
|
||||||
@@ -600,19 +614,26 @@ class PullRequests {
|
|||||||
pull_number: pr.number
|
pull_number: pr.number
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
for (var _b = __asyncValues(this.octokit.paginate.iterator(options)), _c; _c = yield _b.next(), !_c.done;) {
|
for (var _d = true, _e = __asyncValues(this.octokit.paginate.iterator(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
||||||
const response = _c.value;
|
_c = _f.value;
|
||||||
|
_d = false;
|
||||||
|
try {
|
||||||
|
const response = _c;
|
||||||
const reviews = response.data;
|
const reviews = response.data;
|
||||||
pr.approvedReviewers = reviews
|
pr.approvedReviewers = reviews
|
||||||
.filter(r => r.state === 'APPROVED')
|
.filter(r => r.state === 'APPROVED')
|
||||||
.map(r => { var _a; return (_a = r.user) === null || _a === void 0 ? void 0 : _a.login; })
|
.map(r => { var _a; return (_a = r.user) === null || _a === void 0 ? void 0 : _a.login; })
|
||||||
.filter(r => !!r);
|
.filter(r => !!r);
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
_d = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
||||||
finally {
|
finally {
|
||||||
try {
|
try {
|
||||||
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||||
}
|
}
|
||||||
finally { if (e_3) throw e_3.error; }
|
finally { if (e_3) throw e_3.error; }
|
||||||
}
|
}
|
||||||
@@ -1141,7 +1162,7 @@ class Tags {
|
|||||||
this.octokit = octokit;
|
this.octokit = octokit;
|
||||||
}
|
}
|
||||||
getTags(owner, repo, maxTagsToFetch) {
|
getTags(owner, repo, maxTagsToFetch) {
|
||||||
var e_1, _a;
|
var _a, e_1, _b, _c;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const tagsInfo = [];
|
const tagsInfo = [];
|
||||||
const options = this.octokit.repos.listTags.endpoint.merge({
|
const options = this.octokit.repos.listTags.endpoint.merge({
|
||||||
@@ -1151,8 +1172,11 @@ class Tags {
|
|||||||
per_page: 100
|
per_page: 100
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
for (var _b = __asyncValues(this.octokit.paginate.iterator(options)), _c; _c = yield _b.next(), !_c.done;) {
|
for (var _d = true, _e = __asyncValues(this.octokit.paginate.iterator(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
||||||
const response = _c.value;
|
_c = _f.value;
|
||||||
|
_d = false;
|
||||||
|
try {
|
||||||
|
const response = _c;
|
||||||
const tags = response.data;
|
const tags = response.data;
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
tagsInfo.push({
|
tagsInfo.push({
|
||||||
@@ -1165,11 +1189,15 @@ class Tags {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
_d = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||||
finally {
|
finally {
|
||||||
try {
|
try {
|
||||||
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||||
}
|
}
|
||||||
finally { if (e_1) throw e_1.error; }
|
finally { if (e_1) throw e_1.error; }
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Generated
+723
-692
File diff suppressed because it is too large
Load Diff
+12
-12
@@ -40,22 +40,22 @@
|
|||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"webpack": "^5.74.0"
|
"webpack": "^5.75.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.1.2",
|
"@types/jest": "^29.2.3",
|
||||||
"@types/node": "^18.11.0",
|
"@types/node": "^18.11.9",
|
||||||
"@types/semver": "^7.3.12",
|
"@types/semver": "^7.3.13",
|
||||||
"@typescript-eslint/parser": "^5.40.0",
|
"@typescript-eslint/parser": "^5.44.0",
|
||||||
"@vercel/ncc": "^0.34.0",
|
"@vercel/ncc": "^0.34.0",
|
||||||
"eslint": "^8.25.0",
|
"eslint": "^8.28.0",
|
||||||
"eslint-plugin-github": "^4.4.0",
|
"eslint-plugin-github": "^4.4.1",
|
||||||
"eslint-plugin-jest": "^27.1.2",
|
"eslint-plugin-jest": "^27.1.5",
|
||||||
"jest": "^29.2.0",
|
"jest": "^29.3.1",
|
||||||
"jest-circus": "^29.2.0",
|
"jest-circus": "^29.3.1",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.8.0",
|
||||||
"ts-jest": "^29.0.3",
|
"ts-jest": "^29.0.3",
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user