feat(github): add new pull requests trigger

This commit is contained in:
Ali BARIN
2022-10-20 20:44:02 +02:00
parent 1613ab503c
commit 97f88d6c4a
3 changed files with 115 additions and 3 deletions

View File

@@ -42,14 +42,14 @@ const newIssues = async ($: IGlobalVariable) => {
if (response.data.length) {
for (const issue of response.data) {
const issueId = issue.id.toString();
const issueId = issue.id;
if (issueId <= $.flow.lastInternalId && !$.execution.testRun) return issues;
if (issueId <= Number($.flow.lastInternalId) && !$.execution.testRun) return issues;
const dataItem = {
raw: issue,
meta: {
internalId: issueId,
internalId: issueId.toString(),
},
};