We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2124448 commit 53299ecCopy full SHA for 53299ec
src/github/pullRequestModel.ts
@@ -1264,6 +1264,9 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
1264
* @param reviewer A GitHub Login
1265
*/
1266
async deleteReviewRequest(reviewers: IAccount[], teamReviewers: ITeam[]): Promise<void> {
1267
+ if (reviewers.length === 0 && teamReviewers.length === 0) {
1268
+ return;
1269
+ }
1270
const { octokit, remote } = await this.githubRepository.ensure();
1271
await octokit.call(octokit.api.pulls.removeRequestedReviewers, {
1272
owner: remote.owner,
0 commit comments