32 |
GitHub Issue Simulator
33 |
34 |
40 |
41 |
47 |
48 |
54 |
55 |
56 |
57 | )
58 | }
59 |
--------------------------------------------------------------------------------
/examples/github-integration-workflow/steps/pr-classifier/pr-classifier.step.ts:
--------------------------------------------------------------------------------
1 | import { z } from 'zod'
2 | import { OpenAIClient } from '../../services/openai/OpenAIClient'
3 | import { GithubPREvent } from '../../types/github-events'
4 | import type { EventConfig, StepHandler } from 'motia'
5 |
6 | const prSchema = z.object({
7 | prNumber: z.number(),
8 | title: z.string(),
9 | body: z.string().optional(),
10 | owner: z.string(),
11 | repo: z.string(),
12 | author: z.string(),
13 | baseBranch: z.string(),
14 | headBranch: z.string(),
15 | commitSha: z.string(),
16 | })
17 |
18 | export const config: EventConfig