auto-approver
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -45,4 +45,4 @@ "use strict"; | ||
const pullRequests = yield this.getPullRequestsBySlug(projectSlug); | ||
const matchedPulls = pullRequests.filter(pullRequest => pullRequest.head.ref.match(match)); | ||
console.log(`Found matching pull requests for "${projectSlug}":`, matchedPulls.map(pull => pull.title)); | ||
const matchedPulls = pullRequests.filter(pullRequest => !!pullRequest.head.ref.match(match)); | ||
this.logger.info(`Found matching pull requests for "${projectSlug}":`, matchedPulls.map(pull => pull.title)); | ||
const approveResults = yield Promise.all(matchedPulls.map((pull) => __awaiter(this, void 0, void 0, function* () { return this.approveByPullNumber(projectSlug, pull.number); }))); | ||
@@ -49,0 +49,0 @@ return { projectSlug, approveResults }; |
@@ -39,5 +39,9 @@ #!/usr/bin/env node | ||
.approveAllByMatch(new RegExp(answer)) | ||
.then(() => process.exit()) | ||
.then(results => { | ||
const approvedProjects = results.filter(result => result.approveResults.length > 0); | ||
logger.info(`Approved ${approvedProjects.length} pull requests.`); | ||
process.exit(); | ||
}) | ||
.catch(error => logger.error(error)); | ||
}); | ||
//# sourceMappingURL=cli.js.map |
@@ -8,5 +8,5 @@ { | ||
"axios": "0.19.2", | ||
"commander": "4.1.0", | ||
"commander": "5.0.0", | ||
"cosmiconfig": "6.0.0", | ||
"logdown": "3.3.0" | ||
"logdown": "3.3.1" | ||
}, | ||
@@ -18,18 +18,18 @@ "description": "Automatically approve all GitHub PRs which match a specific pattern.", | ||
"@ffflorian/tslint-config": "0.7.1", | ||
"@semantic-release/changelog": "3.0.6", | ||
"@semantic-release/git": "8.0.0", | ||
"@types/jasmine": "3.5.1", | ||
"@semantic-release/changelog": "5.0.0", | ||
"@semantic-release/git": "9.0.0", | ||
"@types/jasmine": "3.5.9", | ||
"@types/node": "~12", | ||
"husky": "4.0.5", | ||
"husky": "4.2.3", | ||
"jasmine": "3.5.0", | ||
"lint-staged": "10.0.0", | ||
"lint-staged": "10.0.8", | ||
"prettier": "1.19.1", | ||
"publish-flat": "1.4.0", | ||
"rimraf": "3.0.0", | ||
"semantic-release": "16.0.3", | ||
"ts-node": "8.6.0", | ||
"tslint": "5.20.1", | ||
"rimraf": "3.0.2", | ||
"semantic-release": "17.0.4", | ||
"ts-node": "8.7.0", | ||
"tslint": "6.1.0", | ||
"tslint-config-prettier": "1.18.0", | ||
"tslint-plugin-prettier": "2.1.0", | ||
"typescript": "3.7.4" | ||
"tslint-plugin-prettier": "2.2.0", | ||
"typescript": "3.8.3" | ||
}, | ||
@@ -96,3 +96,3 @@ "engines": { | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.1.0" | ||
} |
@@ -1,2 +0,2 @@ | ||
# auto-approver [![Build Status](https://action-badges.now.sh/ffflorian/auto-approver)](https://github.com/ffflorian/auto-approver/actions/) [![npm version](https://img.shields.io/npm/v/ffflorian/auto-approver.svg?style=flat)](https://www.npmjs.com/package/ffflorian/auto-approver) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ffflorian/auto-approver)](https://dependabot.com) | ||
# auto-approver [![Build Status](https://github.com/ffflorian/auto-approver/workflows/Build/badge.svg)](https://github.com/ffflorian/auto-approver/actions/) [![npm version](https://img.shields.io/npm/v/auto-approver.svg?style=flat)](https://www.npmjs.com/package/auto-approver) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ffflorian/auto-approver)](https://dependabot.com) | ||
@@ -3,0 +3,0 @@ Automatically approve all GitHub PRs which match a specific pattern. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52540
13
182
+ Addedcommander@5.0.0(transitive)
+ Addedlogdown@3.3.1(transitive)
- Removedcommander@4.1.0(transitive)
- Removedlogdown@3.3.0(transitive)
Updatedcommander@5.0.0
Updatedlogdown@3.3.1