Added issue commented example job

This commit is contained in:
Matt Aitken
2023-06-21 17:55:10 +01:00
parent 2166929fa8
commit fff2f40924
@@ -49,3 +49,17 @@ new Job(client, {
return { payload, ctx };
},
});
new Job(client, {
id: "github-integration-on-issue-commented",
name: "GitHub Integration - On Issue commented",
version: "0.1.0",
trigger: githubApiKey.triggers.repo({
event: events.onIssueComment,
repo: "triggerdotdev/empty",
}),
run: async (payload, io, ctx) => {
await io.logger.info("This is a simple log info message");
return { payload, ctx };
},
});