Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions apps/github-agent/src/workflows.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { log, proxyActivities } from "@temporalio/workflow";
import * as activities from "./activities.js";

// Export your workflow functions here

const {
helloActivity,
} = proxyActivities<typeof activities>({
Expand All @@ -19,4 +17,19 @@ const {
export async function helloWorkflow() {
log.info("Entering Hello workflow");
await helloActivity();
}
}

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<ReviewPullRequestResponse> {
log.info("Entering reviewPullRequest workflow:", request);
return {};
}