From 0838b334e98a965c5f3b80f829237b7230db3cd4 Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Thu, 6 Feb 2025 07:14:01 +0100 Subject: [PATCH] Add new workflow --- apps/github-agent/src/workflows.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/apps/github-agent/src/workflows.ts b/apps/github-agent/src/workflows.ts index 66a3cd0..e8c2d09 100644 --- a/apps/github-agent/src/workflows.ts +++ b/apps/github-agent/src/workflows.ts @@ -1,8 +1,6 @@ import { log, proxyActivities } from "@temporalio/workflow"; import * as activities from "./activities.js"; -// Export your workflow functions here - const { helloActivity, } = proxyActivities({ @@ -19,4 +17,19 @@ const { export async function helloWorkflow() { log.info("Entering Hello workflow"); await helloActivity(); -} \ No newline at end of file +} + +export type ReviewPullRequestRequest = { + /** + * The event that triggered this workflow in the GitHub API. + * + * See https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request + */ + githubEvent: any; +} +export type ReviewPullRequestResponse = { +} +export async function reviewPullRequest(request: ReviewPullRequestRequest): Promise { + log.info("Entering reviewPullRequest workflow:", request); + return {}; +}