Pull request event

This commit is contained in:
Matt Aitken
2023-06-21 19:41:33 +01:00
parent 9e8b37c6cf
commit 0ad09eb11f
3 changed files with 706 additions and 0 deletions
@@ -147,3 +147,17 @@ new Job(client, {
return { payload, ctx };
},
});
new Job(client, {
id: "github-integration-on-pull-request",
name: "GitHub Integration - On Pull Request",
version: "0.1.0",
trigger: githubApiKey.triggers.repo({
event: events.onPullRequest,
repo: "triggerdotdev/empty",
}),
run: async (payload, io, ctx) => {
await io.logger.info("This is a simple log info message");
return { payload, ctx };
},
});