optimize pull request

This commit is contained in:
Sergey Dolin
2023-06-15 23:14:14 +02:00
parent 02989dcb65
commit 51c18470e1
4 changed files with 15 additions and 2 deletions

View File

@@ -27,10 +27,13 @@ export class ExemptDraftPullRequest {
)} is enabled`
);
/* This code was used until Jun 15 2022 - it is unclear why they had to call API for getting pull request
const pullRequest: IPullRequest | undefined | void =
await pullRequestCallback();
if (pullRequest?.draft === true) {
*/
if (this._issue?.draft === true) {
this._issueLogger.info(
LoggerService.white('└──'),
`Skip the $$type draft checks`