refactor: Remove test run and completion check from new pull requests
This commit is contained in:
@@ -26,12 +26,6 @@ const newPullRequests = async ($: IGlobalVariable) => {
|
|||||||
for (const pullRequest of response.data) {
|
for (const pullRequest of response.data) {
|
||||||
const pullRequestId = pullRequest.id;
|
const pullRequestId = pullRequest.id;
|
||||||
|
|
||||||
if (
|
|
||||||
pullRequestId <= Number($.flow.lastInternalId) &&
|
|
||||||
!$.execution.testRun
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
const dataItem = {
|
const dataItem = {
|
||||||
raw: pullRequest,
|
raw: pullRequest,
|
||||||
meta: {
|
meta: {
|
||||||
@@ -42,7 +36,7 @@ const newPullRequests = async ($: IGlobalVariable) => {
|
|||||||
$.pushTriggerItem(dataItem);
|
$.pushTriggerItem(dataItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (links.next && !$.execution.testRun);
|
} while (links.next);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default newPullRequests;
|
export default newPullRequests;
|
||||||
|
Reference in New Issue
Block a user