From fff2f409246daa577d1e044a574b0ddd00cb42df Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Wed, 21 Jun 2023 17:55:10 +0100 Subject: [PATCH] Added issue commented example job --- examples/nextjs-example/src/jobs/github.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/nextjs-example/src/jobs/github.ts b/examples/nextjs-example/src/jobs/github.ts index f7e21928b..def95024f 100644 --- a/examples/nextjs-example/src/jobs/github.ts +++ b/examples/nextjs-example/src/jobs/github.ts @@ -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 }; + }, +});