Skip to content

Commit

Permalink
refactor: dont approve PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauris Skraucis authored and Lauris Skraucis committed Aug 26, 2023
1 parent f5b4131 commit 5ed8384
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ export const added = async (payload: InstallationRepositoriesEvent) => {
const result = await reportBreakingChanges(repo.full_name, pr.number, dependency, octokit);
prStatus = result.status;
}

if (prStatus === 'no-breaking-changes') {
await postReviewComment(repo.full_name, pr.number, '', 'APPROVE', octokit);
}
}
}
};
4 changes: 0 additions & 4 deletions source/events/pull_request/actions/opened/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ export const opened = async (payload: PullRequestOpenedEvent) => {
const result = await reportBreakingChanges(repoName, prNumber, dependency, octokit);
prStatus = result.status;
}

if (prStatus === 'no-breaking-changes') {
await postReviewComment(repoName, prNumber, '', 'APPROVE', octokit);
}
};

0 comments on commit 5ed8384

Please sign in to comment.