refactor: Remove test run and completion check from new pull requests

This commit is contained in:
Faruk AYDIN
2022-10-28 01:10:33 +02:00
parent 031e175e9f
commit 232ba230eb

View File

@@ -26,12 +26,6 @@ const newPullRequests = async ($: IGlobalVariable) => {
for (const pullRequest of response.data) {
const pullRequestId = pullRequest.id;
if (
pullRequestId <= Number($.flow.lastInternalId) &&
!$.execution.testRun
)
return;
const dataItem = {
raw: pullRequest,
meta: {
@@ -42,7 +36,7 @@ const newPullRequests = async ($: IGlobalVariable) => {
$.pushTriggerItem(dataItem);
}
}
} while (links.next && !$.execution.testRun);
} while (links.next);
};
export default newPullRequests;