feat: add generated flags to worflow pair

This commit is contained in:
karishmas6
2024-06-08 00:21:29 +05:30
parent ed84b8b90c
commit 928b7dd93c

View File

@@ -385,5 +385,17 @@ export class WorkflowGenerator {
return workflow;
};
public AddGeneratedFlags = (workflow: WorkflowFile): WorkflowFile => {
const copy = JSON.parse(JSON.stringify(workflow));
for (let i = 0; i < workflow.workflow.length; i++) {
copy.workflow[i].what.unshift({
action: 'flag',
args: ['generated'],
});
}
return copy;
};
}